SVN revision: 73512
This commit is contained in:
Vincent Torri 2012-07-10 05:18:00 +00:00
parent 9d4a352a45
commit abc58b7d0f
1 changed files with 3 additions and 0 deletions

View File

@ -193,6 +193,9 @@ _socketfd_handler(int fd __UNUSED__, Fd_Flags flags __UNUSED__, void *data __UNU
ERR("Could not accept socket: \"%s\"", strerror(errno));
return;
}
/* TODO: when porting to windows, do:
* SetHandleInformation(s, HANDLE_FLAG_INHERIT, 0)
*/
fcntl(s, F_SETFD, FD_CLOEXEC);
cserve2_client_accept(s);