diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:11 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-01 19:09:57 +0100 |
commit | d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612 (patch) | |
tree | f36fe3008f36ff75cbdd31b630f8f13f1f205ebb /meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch | |
parent | caab7fc509bf27706ff3248689f6afd04225cfda (diff) | |
download | poky-d62ee7eaf2ba025c3f64b2d4e10dc7cec4637612.tar.gz |
packages: Separate out most of the remaining packages into recipes
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch')
-rw-r--r-- | meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch b/meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch new file mode 100644 index 0000000000..4b5eb73760 --- /dev/null +++ b/meta/recipes-core/util-linux/util-linux-2.17.2/util-linux-ng-replace-siginterrupt.patch | |||
@@ -0,0 +1,23 @@ | |||
1 | Index: util-linux-ng-2.14/login-utils/login.c | ||
2 | =================================================================== | ||
3 | --- util-linux-ng-2.14.orig/login-utils/login.c 2008-05-28 16:01:02.000000000 -0700 | ||
4 | +++ util-linux-ng-2.14/login-utils/login.c 2009-03-04 18:31:42.000000000 -0800 | ||
5 | @@ -358,6 +358,7 @@ | ||
6 | char *childArgv[10]; | ||
7 | char *buff; | ||
8 | int childArgc = 0; | ||
9 | + struct sigaction act; | ||
10 | #ifdef HAVE_SECURITY_PAM_MISC_H | ||
11 | int retcode; | ||
12 | pam_handle_t *pamh = NULL; | ||
13 | @@ -373,7 +374,9 @@ | ||
14 | pid = getpid(); | ||
15 | |||
16 | signal(SIGALRM, timedout); | ||
17 | - siginterrupt(SIGALRM,1); /* we have to interrupt syscalls like ioclt() */ | ||
18 | + (void) sigaction(SIGALRM, NULL, &act); | ||
19 | + act.sa_flags &= ~SA_RESTART; | ||
20 | + sigaction(SIGALRM, &act, NULL); | ||
21 | alarm((unsigned int)timeout); | ||
22 | signal(SIGQUIT, SIG_IGN); | ||
23 | signal(SIGINT, SIG_IGN); | ||