1
0
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:
Andrew Tridgell 2000-09-12 07:24:06 +00:00
parent df89b48539
commit 55c3abe3f2

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);