summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch
diff options
context:
space:
mode:
authorSaul Wold <sgw@linux.intel.com>2011-05-24 16:19:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-06-01 18:34:32 +0100
commita70cc536166de4114de1ad1c8f491f45093ef7fc (patch)
tree3050047ef7e4ba91d0788499da2b854770fa6322 /meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch
parent2dfc95b92d31540970891aea1aca0d9e04ba7df3 (diff)
downloadpoky-a70cc536166de4114de1ad1c8f491f45093ef7fc.tar.gz
util-linux: update to 2.19.1
(From OE-Core rev: 596e6807826c34a4f93d7cb26052d1bd7a985201) Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch')
-rw-r--r--meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch b/meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch
new file mode 100644
index 0000000000..c5c0affcb8
--- /dev/null
+++ b/meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch
@@ -0,0 +1,25 @@
1Upstream-Status: Pending
2
3Index: util-linux-ng-2.14/login-utils/login.c
4===================================================================
5--- util-linux-ng-2.14.orig/login-utils/login.c 2008-05-28 16:01:02.000000000 -0700
6+++ util-linux-ng-2.14/login-utils/login.c 2009-03-04 18:31:42.000000000 -0800
7@@ -358,6 +358,7 @@
8 char *childArgv[10];
9 char *buff;
10 int childArgc = 0;
11+ struct sigaction act;
12 #ifdef HAVE_SECURITY_PAM_MISC_H
13 int retcode;
14 pam_handle_t *pamh = NULL;
15@@ -373,7 +374,9 @@
16 pid = getpid();
17
18 signal(SIGALRM, timedout);
19- siginterrupt(SIGALRM,1); /* we have to interrupt syscalls like ioclt() */
20+ (void) sigaction(SIGALRM, NULL, &act);
21+ act.sa_flags &= ~SA_RESTART;
22+ sigaction(SIGALRM, &act, NULL);
23 alarm((unsigned int)timeout);
24 signal(SIGQUIT, SIG_IGN);
25 signal(SIGINT, SIG_IGN);