mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-02-20 17:33:08 +00:00
fixed a blocking io problem.
This commit is contained in:
parent
61aa3994b6
commit
29a7c20160
@ -166,6 +166,9 @@ int monitor_poll()
|
||||
}
|
||||
|
||||
/* Check for new connections */
|
||||
fcntl(monitor_named_socket,F_SETFL,
|
||||
fcntl(monitor_named_socket, F_GETFL, NULL)|O_NONBLOCK);
|
||||
WHY("Getting ready to accept()");
|
||||
while((
|
||||
#ifdef HAVE_LINUX_IF_H
|
||||
s=accept4(monitor_named_socket,&ignored_address,&ignored_length,O_NONBLOCK)
|
||||
|
Loading…
x
Reference in New Issue
Block a user