From a59508b9941f4789f819c392ed6344e49eae3e00 Mon Sep 17 00:00:00 2001 From: SJ Date: Thu, 10 Nov 2016 21:25:42 +0100 Subject: [PATCH] listener socket fix Change-Id: I6a81c4ab345b072b2bf6e3b1a3b914a6da08a49e Signed-off-by: SJ --- src/piler-smtp.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/piler-smtp.c b/src/piler-smtp.c index 74a9a085..fb902e42 100644 --- a/src/piler-smtp.c +++ b/src/piler-smtp.c @@ -358,6 +358,10 @@ int main(int argc, char **argv){ exit(1); } + if(make_socket_non_blocking(listenerfd) == -1){ + fatal("make_socket_non_blocking()"); + } + if(listen(listenerfd, cfg.backlog) == -1){ fatal("ERROR: listen()"); }