diff options
| author | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-08-06 08:31:43 +0000 |
|---|---|---|
| committer | Stefan Schmidt <stefan@datenfreihafen.org> | 2009-08-06 08:31:43 +0000 |
| commit | 7a0f1c0ecd1616ba5c876e8b1e96402fe7e65a4a (patch) | |
| tree | aeed6d6dea86505a379dcc564e8db6cc2aefddc0 /recipes/util-linux-ng/util-linux-ng-2.16/util-linux-ng-replace-siginterrupt.patch | |
| parent | a07fa8486f9a4344fc1904706499847653593637 (diff) | |
| parent | 6211c548044fd843092c306382110a201d9f2a58 (diff) | |
Merge branch 'org.openembedded.dev' of git@git.openembedded.net:openembedded into org.openembedded.dev
Diffstat (limited to 'recipes/util-linux-ng/util-linux-ng-2.16/util-linux-ng-replace-siginterrupt.patch')
| -rw-r--r-- | recipes/util-linux-ng/util-linux-ng-2.16/util-linux-ng-replace-siginterrupt.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/recipes/util-linux-ng/util-linux-ng-2.16/util-linux-ng-replace-siginterrupt.patch b/recipes/util-linux-ng/util-linux-ng-2.16/util-linux-ng-replace-siginterrupt.patch new file mode 100644 index 0000000000..4b5eb73760 --- /dev/null +++ b/recipes/util-linux-ng/util-linux-ng-2.16/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); |
