X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/5e7a5e2d42c1b06f249debca72c10ad33d157402..ae5ae3bf5c5709938e3a2bb6203094ede8af45e6:/process.c diff --git a/process.c b/process.c index edc87ac..a15e3a6 100644 --- a/process.c +++ b/process.c @@ -301,9 +301,8 @@ 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); + setnonblock(spr); register_for_poll(NULL,signal_beforepoll,signal_afterpoll,"signal"); signal_handling=True;