git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95a1f88
)
Fix max_fd calculation in event_loop_once
author
Volker Lendecke
<vl@samba.org>
Wed, 11 Jun 2008 16:56:20 +0000
(18:56 +0200)
committer
Volker Lendecke
<vl@samba.org>
Wed, 11 Jun 2008 16:58:26 +0000
(18:58 +0200)
For some bugs I really wonder how they can go undetected for so long.
Fix a bug reported by Mathias Dietz. No samba bugzilla entry, but still 100%
needed for 3-2-stable.
Volker
(cherry picked from commit
82c994dabc47bb4755c883a1f3651bb5d65cf2c5
)
(This used to be commit
91c73e093a03b10426b671cb3e1dffb8a2455d47
)
source3/lib/events.c
patch
|
blob
|
history
diff --git
a/source3/lib/events.c
b/source3/lib/events.c
index 8134a7ac1c2a9503f4696a5df21a873077f3903a..7750176d8e4bc0e6e59995013e8ffcc5d917a467 100644
(file)
--- a/
source3/lib/events.c
+++ b/
source3/lib/events.c
@@
-344,7
+344,7
@@
int event_loop_once(struct event_context *ev)
return 0;
}
- ret = sys_select(maxfd, &r_fds, &w_fds, NULL, &to);
+ ret = sys_select(maxfd
+1
, &r_fds, &w_fds, NULL, &to);
if (ret == -1 && errno != EINTR) {
return -1;