summaryrefslogtreecommitdiffhomepage
path: root/libs/nixio
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2009-03-13 18:29:23 +0000
committerSteven Barth <steven@midlink.org>2009-03-13 18:29:23 +0000
commitee4852a5ad79452f2ea76e32463a0af91b857752 (patch)
tree876c053c787aa2f2751c1e0eb1cb4c3f0b810139 /libs/nixio
parentedda19be9a6b5210523b54d87224f885232c847f (diff)
Sync nixio
Diffstat (limited to 'libs/nixio')
-rw-r--r--libs/nixio/src/poll.c4
1 files changed, 3 insertions, 1 deletions
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);