diff --git a/main.c b/main.c index 7c063513..34d3d9c7 100644 --- a/main.c +++ b/main.c @@ -2410,6 +2410,7 @@ FILE *sopen(const char *program) _exit(127); } /* parent */ + signal(SIGCHLD, SIG_IGN); close(fds[1]); return fdopen(fds[0], "r+"); }