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