aboutsummaryrefslogtreecommitdiffstats
path: root/src/listen.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/listen.c')
-rw-r--r--src/listen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/listen.c b/src/listen.c
index a59a6aa02..a45cb6d49 100644
--- a/src/listen.c
+++ b/src/listen.c
@@ -293,6 +293,8 @@ listen_in_event(G_GNUC_UNUSED GIOChannel *source,
fd = accept(listen_fd, &sockAddr, &socklen);
if (fd >= 0) {
+ set_nonblocking(fd);
+
client_new(fd, &sockAddr, get_remote_uid(fd));
} else if (fd < 0 && errno != EINTR) {
g_warning("Problems accept()'ing");