Signed-off-by: Uli Schlachter <psyc...@znc.in> --- luaa.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/luaa.c b/luaa.c index f624841..74a32fd 100644 --- a/luaa.c +++ b/luaa.c @@ -1100,6 +1100,11 @@ luaA_conn_cb(EV_P_ ev_io *w, int revents) ev_io *csio_conn = p_new(ev_io, 1); int csfd = accept(w->fd, NULL, NULL); + if (csfd < 0) + return; + + socket_close_on_exec(csfd); + ev_io_init(csio_conn, &luaA_cb, csfd, EV_READ); ev_io_start(EV_DEFAULT_UC_ csio_conn); ev_unref(EV_DEFAULT_UC); -- 1.6.2.1 -- "Do you know that books smell like nutmeg or some spice from a foreign land?" -- Faber in Fahrenheit 451 -- To unsubscribe, send mail to awesome-devel-unsubscr...@naquadah.org.