aboutsummaryrefslogtreecommitdiffstats
path: root/webfsd.c
diff options
context:
space:
mode:
Diffstat (limited to 'webfsd.c')
-rw-r--r--webfsd.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/webfsd.c b/webfsd.c
index f900c67..36e5313 100644
--- a/webfsd.c
+++ b/webfsd.c
@@ -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: