mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-25 10:03:49 +03: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…
x
Reference in New Issue
Block a user