htparser: Shut down root handler socket instead of closing it.
authorFredrik Tolf <fredrik@dolda2000.com>
Sun, 3 Feb 2013 02:05:11 +0000 (03:05 +0100)
committerFredrik Tolf <fredrik@dolda2000.com>
Sun, 3 Feb 2013 02:05:11 +0000 (03:05 +0100)
src/htparser.c

index 8d0b515..de5bbc2 100644 (file)
@@ -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);