Remote code caught EINTR making it ininterruptable

John Levon raised the issue that remoteIOEventLoop() poll call was
reissued after EINTR was caught making it uninterruptible.
* src/remote/remote_driver.c: catch EAGAIN instead as suggested by
  Richard Jones
This commit is contained in:
Daniel Veillard 2009-10-30 12:08:26 +01:00
parent a3adcce795
commit 47fec8eac2

View File

@ -7845,7 +7845,7 @@ remoteIOEventLoop(virConnectPtr conn,
repoll:
ret = poll(fds, ARRAY_CARDINALITY(fds), -1);
if (ret < 0 && errno == EINTR)
if (ret < 0 && errno == EAGAIN)
goto repoll;
remoteDriverLock(priv);