summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch')
-rw-r--r--meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch25
1 files changed, 0 insertions, 25 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch b/meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch
deleted file mode 100644
index c5c0affcb8..0000000000
--- a/meta/recipes-core/util-linux/util-linux-2.20.1/util-linux-ng-replace-siginterrupt.patch
+++ /dev/null
@@ -1,25 +0,0 @@
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);