mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
fixed a race in the pipe() setup in sys_select()
(This used to be commit bb0f769272
)
This commit is contained in:
parent
df89b48539
commit
55c3abe3f2
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user