From 1fec17eb5ce7c785521d4a860a475e18400520f7 Mon Sep 17 00:00:00 2001 From: Wilfried Goesgens Date: Thu, 11 Oct 2012 17:00:06 +0200 Subject: [PATCH] EVENT_CLIENT: we settled for 0 being the invalid FD. --- citadel/event_client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/citadel/event_client.c b/citadel/event_client.c index f3fd300cb..6b39829f9 100644 --- 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; } } -- 2.30.2