Diff

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
line wrap: on
line diff
--- a/util-src/poll.c	Sun Oct 07 17:40:13 2018 +0200
+++ b/util-src/poll.c	Sun Oct 07 18:41:44 2018 +0200
@@ -92,6 +92,7 @@
 		lua_pushnil(L);
 		lua_pushstring(L, strerror(EEXIST));
 		lua_pushinteger(L, EEXIST);
+		return 3;
 	}
 
 	FD_CLR(fd, &state->readable);