]> www.dolda2000.com Git - ashd.git/commitdiff
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 8d0b515ec072de95902b7497484401ff371a3e23..de5bbc2a61f32f93fa1ebe1db51c197fcd857840 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);