set O_NONBLOCK default in accept()

This commit is contained in:
Joseph Henry 2015-10-21 16:32:27 -07:00
parent 303579cb42
commit 1458dc8347
2 changed files with 1 additions and 1 deletions

View File

@ -656,7 +656,7 @@ int accept(ACCEPT_SIG)
}
//if(opt & O_NONBLOCK)
//fcntl(sockfd, F_SETFL, O_NONBLOCK);
fcntl(sockfd, F_SETFL, O_NONBLOCK);
char rbuf[16], c[1];
int new_conn_socket;

Binary file not shown.