X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=libfcgi%2Fos_win32.c;h=f6eee844b11f6ac9dded2e21d47e4db29e35f650;hb=8462b1ec08fae91d82cd8ca43d638dfcdb2026bf;hp=c25b5e96dc2ce04662c7d99b59f4dcfe70d1f859;hpb=08f602691810a8f3f424edb6afa4a914d13c42cb;p=catagits%2Ffcgi2.git diff --git a/libfcgi/os_win32.c b/libfcgi/os_win32.c index c25b5e9..f6eee84 100755 --- a/libfcgi/os_win32.c +++ b/libfcgi/os_win32.c @@ -17,7 +17,7 @@ * significantly more enjoyable.) */ #ifndef lint -static const char rcsid[] = "$Id: os_win32.c,v 1.7 2000/08/26 02:43:49 robs Exp $"; +static const char rcsid[] = "$Id: os_win32.c,v 1.8 2000/11/05 17:09:35 robs Exp $"; #endif /* not lint */ #include "fcgi_config.h" @@ -1525,6 +1525,9 @@ int OS_Accept(int listen_sock, int fail_on_intr, const char *webServerAddrs) */ int OS_IpcClose(int ipcFd) { + if (ipcFd == -1) + return 0; + /* * Catch it if fd is a bogus value */