handled RC_EINTR returned by sys::waitonmux() in tcp-proxy.awk

This commit is contained in:
hyung-hwan 2020-03-03 08:09:34 +00:00
parent 015ed09c5a
commit 957fa97ebb

View File

@ -217,6 +217,7 @@ function serve_connections (mx, ss, remoteaddr)
if ((x = sys::waitonmux(mx, 3.10)) <= -1) if ((x = sys::waitonmux(mx, 3.10)) <= -1)
{ {
if (x == sys::RC_EINTR) continue;
print "Error: problem while waiting on multiplexer -", sys::errmsg(); print "Error: problem while waiting on multiplexer -", sys::errmsg();
break; break;
} }