if(recvchunks(in, out))
break;
} else {
- break;
+ /* Ignore rather than abort, to be kinder to broken clients. */
+ headrmheader(req, "content-type");
}
}
if(fflush(out))
{
int fd;
+ setsid();
if(daemonize) {
- setsid();
chdir("/");
if((fd = open("/dev/null", O_RDWR)) >= 0) {
dup2(fd, 0);