From: Fredrik Tolf Date: Sun, 3 Feb 2013 02:05:11 +0000 (+0100) Subject: htparser: Shut down root handler socket instead of closing it. X-Git-Tag: 0.12~9 X-Git-Url: http://www.dolda2000.com/gitweb/?p=ashd.git;a=commitdiff_plain;h=ecd4208b888be7f60bc2ae013b799861959b7cb9 htparser: Shut down root handler socket instead of closing it. --- diff --git a/src/htparser.c b/src/htparser.c index 8d0b515..de5bbc2 100644 --- a/src/htparser.c +++ b/src/htparser.c @@ -423,8 +423,7 @@ static void plexwatch(struct muth *muth, va_list args) * some day... */ free(buf); } - close(plex); - plex = -1; + shutdown(plex, SHUT_RDWR); for(i = 0; i < listeners.d; i++) { if(listeners.b[i] == muth) bufdel(listeners, i);