fixed a blocking io problem.

This commit is contained in:
gardners 2012-05-03 13:37:18 +09:30
parent 61aa3994b6
commit 29a7c20160

View File

@ -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)