diff options
-rw-r--r-- | httpd.h | 2 | ||||
-rw-r--r-- | webfsd.c | 4 |
2 files changed, 4 insertions, 2 deletions
@@ -35,7 +35,7 @@ struct DIRCACHE { char path[1024]; - char mtime[40]; + char mtime[64]; time_t add; char *html; int length; @@ -958,7 +958,9 @@ main(int argc, char *argv[]) xperror(LOG_ERR,"fork",NULL); exit(1); case 0: - close(0); close(1); close(2); setsid(); + close(0); close(1); close(2); + setsid(); + open("/dev/null",O_RDWR); dup(0); dup(0); have_tty = 0; break; default: |