mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
parent
a3adcce795
commit
47fec8eac2
@ -7845,7 +7845,7 @@ remoteIOEventLoop(virConnectPtr conn,
|
|||||||
|
|
||||||
repoll:
|
repoll:
|
||||||
ret = poll(fds, ARRAY_CARDINALITY(fds), -1);
|
ret = poll(fds, ARRAY_CARDINALITY(fds), -1);
|
||||||
if (ret < 0 && errno == EINTR)
|
if (ret < 0 && errno == EAGAIN)
|
||||||
goto repoll;
|
goto repoll;
|
||||||
remoteDriverLock(priv);
|
remoteDriverLock(priv);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user