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:
@ -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);
|
||||
|
Reference in New Issue
Block a user