Dolda2000 GitWeb
/
ashd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dirplex: Moved to its own directory and split off configuration code.
[ashd.git]
/
src
/
htparser.c
diff --git
a/src/htparser.c
b/src/htparser.c
index
17ad93a
..
c8064f2
100644
(file)
--- a/
src/htparser.c
+++ b/
src/htparser.c
@@
-22,6
+22,7
@@
#include <string.h>
#include <sys/socket.h>
#include <pwd.h>
#include <string.h>
#include <sys/socket.h>
#include <pwd.h>
+#include <sys/signal.h>
#include <errno.h>
#ifdef HAVE_CONFIG_H
#include <errno.h>
#ifdef HAVE_CONFIG_H
@@
-483,12
+484,14
@@
int main(int argc, char **argv)
exit(1);
}
}
exit(1);
}
}
+ signal(SIGPIPE, SIG_IGN);
if(daemonize) {
daemon(0, 0);
}
if(daemonize) {
daemon(0, 0);
}
- if(pidout != NULL)
+ if(pidout != NULL)
{
fprintf(pidout, "%i\n", getpid());
fprintf(pidout, "%i\n", getpid());
- fclose(pidout);
+ fclose(pidout);
+ }
ioloop();
return(0);
}
ioloop();
return(0);
}