summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-09-12 07:24:06 +0000
committerAndrew Tridgell <tridge@samba.org>2000-09-12 07:24:06 +0000
commitbb0f769272d8a8bd527053746b468bca797e1663 (patch)
tree95c9c2d910e949b530add231eda7d79c67ad8bf0 /source
parente779f834dbb875669c3aa0a35b324aa13f0c8c36 (diff)
downloadsamba-bb0f769272d8a8bd527053746b468bca797e1663.tar.gz
samba-bb0f769272d8a8bd527053746b468bca797e1663.tar.xz
samba-bb0f769272d8a8bd527053746b468bca797e1663.zip
fixed a race in the pipe() setup in sys_select()
Diffstat (limited to 'source')
-rw-r--r--source/lib/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/lib/select.c b/source/lib/select.c
index 8a81c10df59..8a3a6293869 100644
--- a/source/lib/select.c
+++ b/source/lib/select.c
@@ -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);