Sync nixio

This commit is contained in:
Steven Barth 2009-03-13 18:29:23 +00:00
parent edda19be9a
commit ee4852a5ad

View file

@ -143,7 +143,9 @@ static int nixio_poll(lua_State *L) {
lua_pop(L, 3); 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) { if (status < 1) {
free(fds); free(fds);