diff options
author | Richard Jones <rjones@redhat.com> | 2009-05-10 13:51:51 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2009-05-10 13:52:49 +0100 |
commit | f0a5cd69f92f734b94e2361a939e4a1eb01dad9c (patch) | |
tree | 2a22a294deb3cba81a9af3956fea53c5a3be8988 | |
parent | 62c11fb60ef722c77215357a14465b44b5c7402f (diff) | |
download | libguestfs-f0a5cd69f92f734b94e2361a939e4a1eb01dad9c.tar.gz libguestfs-f0a5cd69f92f734b94e2361a939e4a1eb01dad9c.tar.xz libguestfs-f0a5cd69f92f734b94e2361a939e4a1eb01dad9c.zip |
Handle EINTR, EAGAIN in select main loop.
-rw-r--r-- | src/guestfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/guestfs.c b/src/guestfs.c index 9fd943fc..612ac000 100644 --- a/src/guestfs.c +++ b/src/guestfs.c @@ -2175,6 +2175,8 @@ select_main_loop_run (guestfs_main_loop *mlv, guestfs_h *g) xset2 = ml->xset; r = select (ml->max_fd+1, &rset2, &wset2, &xset2, NULL); if (r == -1) { + if (errno == EINTR || errno == EAGAIN) + continue; perrorf (g, "select"); ml->is_running = 0; return -1; |