From 6ffdc65ee6cbc3ca736154625233d7ec8e2ac8d9 Mon Sep 17 00:00:00 2001 From: robs Date: Fri, 11 Oct 2002 00:07:03 +0000 Subject: [PATCH] fix the closesocket call that I just committed --- fcgi_pm.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fcgi_pm.c b/fcgi_pm.c index ce18239..c0abec7 100644 --- a/fcgi_pm.c +++ b/fcgi_pm.c @@ -1,5 +1,5 @@ /* - * $Id: fcgi_pm.c,v 1.79 2002/10/06 00:41:41 robs Exp $ + * $Id: fcgi_pm.c,v 1.80 2002/10/11 00:07:03 robs Exp $ */ @@ -258,8 +258,14 @@ static int init_listen_sock(fcgi_server * fs) return 0; } +#ifdef WIN32 closesocket(fs->listenFd); +#else + close(fs->listenFd); +#endif + fs->listenFd = -1; + return -2; } -- 2.11.4.GIT