X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=secnet.git;a=blobdiff_plain;f=process.c;h=12e2caac5fc6d7d2749422434af2cda54245d056;hp=edc87ac191081f4b64db3e479b848a25be52deea;hb=f54d5adadd831fd0fa55d70d3aaffe60636818f5;hpb=5e7a5e2d42c1b06f249debca72c10ad33d157402 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;