From 55c3abe3f2f81972d48a48174bdbe76f0fdb13e8 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 12 Sep 2000 07:24:06 +0000 Subject: fixed a race in the pipe() setup in sys_select() (This used to be commit bb0f769272d8a8bd527053746b468bca797e1663) --- source3/lib/select.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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); -- cgit