From 47fec8eac2bb38246addb0a0cc368fdbadad4738 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Fri, 30 Oct 2009 12:08:26 +0100 Subject: [PATCH] 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 --- src/remote/remote_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index bf001ebdeb..a1989999c9 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -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);