From 3ea44b524a05c1b771b678d3da127211177322eb Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Fri, 19 Dec 2014 14:41:47 +0000 Subject: Safewrap around iopause in UCSPI servers! --- src/conn-tools/s6-tcpserver6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conn-tools/s6-tcpserver6.c') diff --git a/src/conn-tools/s6-tcpserver6.c b/src/conn-tools/s6-tcpserver6.c index cbfbf2a..4a4e7d3 100644 --- a/src/conn-tools/s6-tcpserver6.c +++ b/src/conn-tools/s6-tcpserver6.c @@ -378,7 +378,7 @@ int main (int argc, char const *const *argv, char const *const *envp) pidip = inyostack ; ipnum = inyostack + maxconn ; while (cont) { - if (iopause(x, 1 + (numconn < maxconn), 0, 0) == -1) + if (iopause_g(x, 1 + (numconn < maxconn), 0, 0) < 0) strerr_diefu1sys(111, "iopause") ; if (x[0].revents & IOPAUSE_EXCEPT) strerr_dief1x(111, "trouble with selfpipe") ; -- cgit v1.2.3