diff options
author | Khem Raj <raj.khem@gmail.com> | 2009-03-05 16:32:00 -0800 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2009-03-05 16:32:00 -0800 |
commit | b7ce9179e07a5eef3df653c4830192f10868aa34 (patch) | |
tree | c17be8211e7fc5773cb041cdf1666b6ef092a353 /packages/util-linux-ng | |
parent | 29839e2c84c15d64f0c422cf504da2ac2f943393 (diff) |
gnutls-2.4.2: Get rid of siginterrupt () call.
util-linux-ng-2.14: Ditto
* siginterrupt () is SUSV4 function which is
better to be replaced by sigaction as suggested
by standard. Below is from http://www.opengroup.org/onlinepubs/9699919799/
The siginterrupt() function supports programs written to historical system
interfaces. Applications should use the sigaction() with the SA_RESTART
flag instead of the obsolescent siginterrupt() function.
Diffstat (limited to 'packages/util-linux-ng')
-rw-r--r-- | packages/util-linux-ng/util-linux-ng-2.14/util-linux-ng-replace-siginterrupt.patch | 23 | ||||
-rw-r--r-- | packages/util-linux-ng/util-linux-ng_2.14.bb | 3 |
2 files changed, 25 insertions, 1 deletions
diff --git a/packages/util-linux-ng/util-linux-ng-2.14/util-linux-ng-replace-siginterrupt.patch b/packages/util-linux-ng/util-linux-ng-2.14/util-linux-ng-replace-siginterrupt.patch new file mode 100644 index 0000000000..4b5eb73760 --- /dev/null +++ b/packages/util-linux-ng/util-linux-ng-2.14/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); diff --git a/packages/util-linux-ng/util-linux-ng_2.14.bb b/packages/util-linux-ng/util-linux-ng_2.14.bb index 1223aa72e8..587eb97120 100644 --- a/packages/util-linux-ng/util-linux-ng_2.14.bb +++ b/packages/util-linux-ng/util-linux-ng_2.14.bb @@ -1,9 +1,10 @@ require util-linux-ng.inc -PR = "r3" +PR = "r4" FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/util-linux-ng-2.14', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}" SRC_URI += "file://util-linux-ng-uclibc-versionsort.patch;patch=1 \ + file://util-linux-ng-replace-siginterrupt.patch;patch=1 \ " LDFLAGS_append_linux-uclibc = " -lintl" LDFLAGS_append_linux-uclibcgnueabi = " -lintl " |