Include <signal.h>.
(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.
#include <stdio.h>
#include <getopt.h>
#include <sys/types.h>
+#include <signal.h>
#include <pwd.h>
#include <grp.h>
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;