summaryrefslogtreecommitdiff
path: root/meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch
diff options
context:
space:
mode:
authorJoshua Lock <josh@linux.intel.com>2010-06-02 14:47:53 +0100
committerJoshua Lock <josh@linux.intel.com>2010-06-02 16:14:54 +0100
commit17f3c548caf4adec37c3bbb139aa6b3900419794 (patch)
treee2b09325aa6efdb0c0be2906a5483544a1790b93 /meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch
parentc4476f7914145f7816868700f1ee1cb352056c21 (diff)
downloadopenembedded-core-17f3c548caf4adec37c3bbb139aa6b3900419794.tar.gz
openembedded-core-17f3c548caf4adec37c3bbb139aa6b3900419794.tar.bz2
openembedded-core-17f3c548caf4adec37c3bbb139aa6b3900419794.tar.xz
openembedded-core-17f3c548caf4adec37c3bbb139aa6b3900419794.zip
util-linux: bump to 2.17 based on OE recipe
Needed to increase version to one which includes libuuid and change do_install for building a native version. Signed-off-by: Joshua Lock <josh@linux.intel.com>
Diffstat (limited to 'meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch')
-rw-r--r--meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch23
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch b/meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch
new file mode 100644
index 000000000..4b5eb7376
--- /dev/null
+++ b/meta/packages/util-linux/util-linux-2.17/util-linux-ng-replace-siginterrupt.patch
@@ -0,0 +1,23 @@
+Index: util-linux-ng-2.14/login-utils/login.c
+===================================================================
+--- util-linux-ng-2.14.orig/login-utils/login.c 2008-05-28 16:01:02.000000000 -0700
++++ util-linux-ng-2.14/login-utils/login.c 2009-03-04 18:31:42.000000000 -0800
+@@ -358,6 +358,7 @@
+ char *childArgv[10];
+ char *buff;
+ int childArgc = 0;
++ struct sigaction act;
+ #ifdef HAVE_SECURITY_PAM_MISC_H
+ int retcode;
+ pam_handle_t *pamh = NULL;
+@@ -373,7 +374,9 @@
+ pid = getpid();
+
+ signal(SIGALRM, timedout);
+- siginterrupt(SIGALRM,1); /* we have to interrupt syscalls like ioclt() */
++ (void) sigaction(SIGALRM, NULL, &act);
++ act.sa_flags &= ~SA_RESTART;
++ sigaction(SIGALRM, &act, NULL);
+ alarm((unsigned int)timeout);
+ signal(SIGQUIT, SIG_IGN);
+ signal(SIGINT, SIG_IGN);