summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2016-01-09 05:47:24 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2016-01-09 05:47:24 +0100
commit0b92e9210cef90a74189ac23a68766636c159fb1 (patch)
tree8601cf798d9e24890f01ffb26b6b7c3f6297858e
parent092e9b5101277da5211a3a01569350477ef207df (diff)
downloadxK-0b92e9210cef90a74189ac23a68766636c159fb1.tar.gz
xK-0b92e9210cef90a74189ac23a68766636c159fb1.tar.xz
xK-0b92e9210cef90a74189ac23a68766636c159fb1.zip
degesch: Lua: set sockets to nonblocking
-rw-r--r--degesch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/degesch.c b/degesch.c
index f3e5ddb..11f148d 100644
--- a/degesch.c
+++ b/degesch.c
@@ -8337,6 +8337,7 @@ lua_plugin_push_connection (struct lua_plugin *plugin, int socket_fd)
memset (self, 0, sizeof *self);
self->plugin = plugin;
+ set_blocking (socket_fd, false);
poller_fd_init (&self->socket_event, &plugin->ctx->poller,
(self->socket_fd = socket_fd));
self->socket_event.dispatcher = (poller_fd_fn) lua_connection_on_ready;