Changeset

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
parents 9445:af7eafe82447
children 9447:6397e965a22d
files util-src/poll.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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);