}
}
+static void sigign(int sig)
+{
+}
+
static void sigexit(int sig)
{
exit(0);
exit(1);
}
signal(SIGCHLD, SIG_IGN);
+ signal(SIGPIPE, sigign);
signal(SIGINT, sigexit);
signal(SIGTERM, sigexit);
mustart(listenloop, 0);
simpleerror(fd, 404, "Not Found", "The requested URL has no corresponding resource.");
}
+static void sighandler(int sig)
+{
+}
+
static void usage(FILE *out)
{
fprintf(out, "usage: dirplex [-hN] [-c CONFIG] DIR\n");
exit(1);
}
signal(SIGCHLD, SIG_IGN);
+ signal(SIGPIPE, sighandler);
while(1) {
if((fd = recvreq(0, &req)) < 0) {
if(errno != 0)
}
signal(SIGCHLD, SIG_IGN);
signal(SIGHUP, sighandler);
+ signal(SIGPIPE, sighandler);
while(1) {
if(reload) {
reloadconf(argv[optind]);
free(usrnm);
}
+static void sighandler(int sig)
+{
+}
+
static void usage(FILE *out)
{
fprintf(out, "usage: userplex [-hI] [-g GROUP] [-m MIN-UID] [-d PUB-DIR] [PROGRAM ARGS...]\n");
childspec = csbuf.b;
}
signal(SIGCHLD, SIG_IGN);
+ signal(SIGPIPE, sighandler);
while(1) {
if((fd = recvreq(0, &req)) < 0) {
if(errno != 0)