summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/select.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/select.c b/source3/lib/select.c
index 8a81c10df5..8a3a629386 100644
--- a/source3/lib/select.c
+++ b/source3/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);