From 4441496397d003bdae8bfe21c4546d3ea02dcee2 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Wed, 21 Apr 2004 12:25:18 +0000 Subject: [PATCH] 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. --- src/install.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.7.4