listener socket fix

Change-Id: I6a81c4ab345b072b2bf6e3b1a3b914a6da08a49e
Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
SJ 2016-11-10 21:25:42 +01:00
parent 1c941a6433
commit a59508b994

View File

@ -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()");
}