X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/blobdiff_plain/5e7a5e2d42c1b06f249debca72c10ad33d157402..f54d5adadd831fd0fa55d70d3aaffe60636818f5:/process.c?ds=inline diff --git a/process.c b/process.c index edc87ac..12e2caa 100644 --- a/process.c +++ b/process.c @@ -301,9 +301,7 @@ void start_signal_handling(void) pipe_cloexec(p); spw=p[1]; spr=p[0]; - if (fcntl(spw, F_SETFL, fcntl(spw, F_GETFL)|O_NONBLOCK)==-1) { - fatal_perror("start_signal_handling: fcntl(O_NONBLOCK)"); - } + setnonblock(spw); register_for_poll(NULL,signal_beforepoll,signal_afterpoll,"signal"); signal_handling=True;