mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 19:11:16 +00: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:
|
||||
ret = poll(fds, ARRAY_CARDINALITY(fds), -1);
|
||||
if (ret < 0 && errno == EINTR)
|
||||
if (ret < 0 && errno == EAGAIN)
|
||||
goto repoll;
|
||||
remoteDriverLock(priv);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user