diff options
author | Saul Wold <sgw@linux.intel.com> | 2011-05-24 16:19:42 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-06-01 18:34:32 +0100 |
commit | a70cc536166de4114de1ad1c8f491f45093ef7fc (patch) | |
tree | 3050047ef7e4ba91d0788499da2b854770fa6322 /meta/recipes-core/util-linux/util-linux-2.19.1/util-linux-ng-replace-siginterrupt.patch | |
parent | 2dfc95b92d31540970891aea1aca0d9e04ba7df3 (diff) | |
download | poky-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.patch | 25 |
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 @@ | |||
1 | Upstream-Status: Pending | ||
2 | |||
3 | Index: 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); | ||