diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-09-12 07:24:06 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-09-12 07:24:06 +0000 |
commit | 55c3abe3f2f81972d48a48174bdbe76f0fdb13e8 (patch) | |
tree | 7e865fd99aab78837a394d07cfd476fdc38f9290 /source3/lib | |
parent | df89b4853954b7dcc86839167760cf72af693656 (diff) | |
download | samba-55c3abe3f2f81972d48a48174bdbe76f0fdb13e8.tar.gz samba-55c3abe3f2f81972d48a48174bdbe76f0fdb13e8.tar.bz2 samba-55c3abe3f2f81972d48a48174bdbe76f0fdb13e8.zip |
fixed a race in the pipe() setup in sys_select()
(This used to be commit bb0f769272d8a8bd527053746b468bca797e1663)
Diffstat (limited to 'source3/lib')
-rw-r--r-- | source3/lib/select.c | 2 |
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); |