From ee4852a5ad79452f2ea76e32463a0af91b857752 Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Fri, 13 Mar 2009 18:29:23 +0000 Subject: Sync nixio --- libs/nixio/src/poll.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs') diff --git a/libs/nixio/src/poll.c b/libs/nixio/src/poll.c index fdec2caaf..33cb46964 100644 --- a/libs/nixio/src/poll.c +++ b/libs/nixio/src/poll.c @@ -143,7 +143,9 @@ static int nixio_poll(lua_State *L) { lua_pop(L, 3); } - status = poll(fds, (nfds_t)len, timeout); + do { + status = poll(fds, (nfds_t)len, timeout); + } while (status == -1 && errno == EINTR); if (status < 1) { free(fds); -- cgit v1.2.3