<div>From man poll(2), poll does not set errno=EAGAIN, however it does set</div><div>errno=EINTR. Have libvirt retry on the appropriate errno.</div><div><br></div><div>Under heavy load, a program of mine kept getting libvirt errors 'poll on socket</div>
<div>failed: Interrupted system call'. The signals were SIGCHLD from processes forked</div><div>by threads unrelated to those using libvirt.</div><div><br></div><div>diff --git a/src/rpc/virnetclient.c b/src/rpc/virnetclient.c</div>
<div>index 2530ffa..f2a6922 100644</div><div>--- a/src/rpc/virnetclient.c</div><div>+++ b/src/rpc/virnetclient.c</div><div>@@ -1374,7 +1374,7 @@ static int virNetClientIOEventLoop(virNetClientPtr client,</div><div> </div>
<div>     repoll:</div><div>         ret = poll(fds, ARRAY_CARDINALITY(fds), timeout);</div><div>-        if (ret < 0 && errno == EAGAIN)</div><div>+        if (ret < 0 && errno == EINTR)</div><div>             goto repoll;</div>
<div> </div><div>         ignore_value(pthread_sigmask(SIG_SETMASK, &oldmask, NULL));</div>