exit(0);
}
-static void chld_handler(int sig __attribute__((unused)))
-{
- /* empty */
-}
-
static void sighandler (int sig)
{
int save_errno = errno;
SigWinch = 1;
break;
+ case SIGCHLD:
+ SigChild = 1;
+ break;
+
case SIGINT:
SigInt = 1;
break;
/* POSIX doesn't allow us to ignore SIGCHLD,
* so we just install a dummy handler for it
*/
- act.sa_handler = chld_handler;
/* don't need to block any other signals here */
sigemptyset (&act.sa_mask);
/* we don't want to mess with stopped children */