path, arg, WTERMSIG(rv), strsignal(WTERMSIG(rv)),
WCOREDUMP(rv) ? " - core dumped" : "");
else
- Message(M_ERR, "sys_cmd(%s,%s,...) exited with wstat %#x",
+ Message(M_ERR, "sys_cmd(%s,%s,...) exited with wstat %#x\n",
path, arg, rv);
}
} else if (c==0) {
sigemptyset(®istered);
sigemptyset(&pending);
- if (pipe(p)!=0) {
- fatal_perror("start_signal_handling: pipe");
- }
+ pipe_cloexec(p);
spw=p[1];
spr=p[0];
if (fcntl(spw, F_SETFL, fcntl(spw, F_GETFL)|O_NONBLOCK)==-1) {