From: Jim Meyering Date: Wed, 21 Apr 2004 12:25:18 +0000 (+0000) Subject: install -s failed on System V if SIGCHLD was ignored. X-Git-Tag: COREUTILS-5_3_0~1696 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4441496397d003bdae8bfe21c4546d3ea02dcee2;p=platform%2Fupstream%2Fcoreutils.git install -s failed on System V if SIGCHLD was ignored. Include . (main) [defined SIGCHLD]: Set SIGCHLD handler to the default, if -s is given, since System V fork+wait does not work if SIGCHLD is ignored. --- diff --git a/src/install.c b/src/install.c index 3279782..6f447b2 100644 --- a/src/install.c +++ b/src/install.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include @@ -227,6 +228,10 @@ main (int argc, char **argv) break; case 's': strip_files = 1; +#ifdef SIGCHLD + /* System V fork+wait does not work if SIGCHLD is ignored. */ + signal (SIGCHLD, SIG_DFL); +#endif break; case 'd': dir_arg = 1;