projects
/
citadel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e8e960
)
EVENT_CLIENT: we settled for 0 being the invalid FD.
author
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 11 Oct 2012 15:00:06 +0000
(17:00 +0200)
committer
Wilfried Goesgens
<dothebart@citadel.org>
Thu, 11 Oct 2012 15:00:06 +0000
(17:00 +0200)
citadel/event_client.c
patch
|
blob
|
history
diff --git
a/citadel/event_client.c
b/citadel/event_client.c
index f3fd300cbf70c8d136b2bfddd3c5d847cddce269..6b39829f9285f736507e952c66ad463df21faef4 100644
(file)
--- a/
citadel/event_client.c
+++ b/
citadel/event_client.c
@@
-316,8
+316,8
@@
void StopClientWatchers(AsyncIO *IO, int CloseFD)
if (CloseFD && (IO->SendBuf.fd > 0)) {
close(IO->SendBuf.fd);
- IO->SendBuf.fd =
-1
;
- IO->RecvBuf.fd =
-1
;
+ IO->SendBuf.fd =
0
;
+ IO->RecvBuf.fd =
0
;
}
}