1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-08 13:49:29 +03:00

fixed a race in the pipe() setup in sys_select()

This commit is contained in:
Andrew Tridgell
-
parent e779f834db
commit bb0f769272

View File

@ -57,8 +57,8 @@ int sys_select(int maxfd, fd_set *fds,struct timeval *tval)
int ret;
if (initialised != sys_getpid()) {
initialised = sys_getpid();
pipe(select_pipe);
initialised = sys_getpid();
}
maxfd = MAX(select_pipe[0]+1, maxfd);