Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
htparser: Shut down root handler socket instead of closing it.
[ashd.git]
/
src
/
htparser.c
diff --git
a/src/htparser.c
b/src/htparser.c
index
8d0b515
..
de5bbc2
100644
(file)
--- 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);