git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df89b48
)
fixed a race in the pipe() setup in sys_select()
author
Andrew Tridgell
<tridge@samba.org>
Tue, 12 Sep 2000 07:24:06 +0000
(07:24 +0000)
committer
Andrew Tridgell
<tridge@samba.org>
Tue, 12 Sep 2000 07:24:06 +0000
(07:24 +0000)
(This used to be commit
bb0f769272d8a8bd527053746b468bca797e1663
)
source3/lib/select.c
patch
|
blob
|
history
diff --git
a/source3/lib/select.c
b/source3/lib/select.c
index 8a81c10df597914f207281682b73044cd7183654..8a3a6293869f18fd500ecc97496b4b44c05eb4bd 100644
(file)
--- 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);