Comparison

util-src/poll.c @ 9446:6b4d28eb19cf

util.poll: Fix missing return for adding duplicate FD
author Kim Alvefur <zash@zash.se>
date Sun, 07 Oct 2018 18:41:44 +0200
parent 9440:1ddecde4ce98
child 9447:6397e965a22d
comparison
equal deleted inserted replaced
9445:af7eafe82447 9446:6b4d28eb19cf
90 90
91 if(FD_ISSET(fd, &state->all)) { 91 if(FD_ISSET(fd, &state->all)) {
92 lua_pushnil(L); 92 lua_pushnil(L);
93 lua_pushstring(L, strerror(EEXIST)); 93 lua_pushstring(L, strerror(EEXIST));
94 lua_pushinteger(L, EEXIST); 94 lua_pushinteger(L, EEXIST);
95 return 3;
95 } 96 }
96 97
97 FD_CLR(fd, &state->readable); 98 FD_CLR(fd, &state->readable);
98 FD_CLR(fd, &state->writable); 99 FD_CLR(fd, &state->writable);
99 FD_CLR(fd, &state->err); 100 FD_CLR(fd, &state->err);