mirror of
https://bitbucket.org/jsuto/piler.git
synced 2024-12-25 19:20:12 +01:00
listener socket fix
Change-Id: I6a81c4ab345b072b2bf6e3b1a3b914a6da08a49e Signed-off-by: SJ <sj@acts.hu>
This commit is contained in:
parent
1c941a6433
commit
a59508b994
@ -358,6 +358,10 @@ int main(int argc, char **argv){
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if(make_socket_non_blocking(listenerfd) == -1){
|
||||||
|
fatal("make_socket_non_blocking()");
|
||||||
|
}
|
||||||
|
|
||||||
if(listen(listenerfd, cfg.backlog) == -1){
|
if(listen(listenerfd, cfg.backlog) == -1){
|
||||||
fatal("ERROR: listen()");
|
fatal("ERROR: listen()");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user