diff options
Diffstat (limited to 'src/system/dlt-system-process-handling.c')
-rw-r--r-- | src/system/dlt-system-process-handling.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/system/dlt-system-process-handling.c b/src/system/dlt-system-process-handling.c index 30568f1..3837d35 100644 --- a/src/system/dlt-system-process-handling.c +++ b/src/system/dlt-system-process-handling.c @@ -80,9 +80,9 @@ int daemonize() for(i = getdtablesize(); i >= 0; i--) close(i); - int fd = i=open("/dev/null",O_RDWR); + int fd = open("/dev/null",O_RDWR); - if(fd < 0 || dup(i) < 0 || dup(i) < 0) + if(fd < 0 || dup(fd) < 0 || dup(fd) < 0) return -1; /** |