EVENT_CLIENT: we settled for 0 being the invalid FD.
authorWilfried Goesgens <dothebart@citadel.org>
Thu, 11 Oct 2012 15:00:06 +0000 (17:00 +0200)
committerWilfried Goesgens <dothebart@citadel.org>
Thu, 11 Oct 2012 15:00:06 +0000 (17:00 +0200)
citadel/event_client.c

index f3fd300cbf70c8d136b2bfddd3c5d847cddce269..6b39829f9285f736507e952c66ad463df21faef4 100644 (file)
@@ -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;
        }
 }