aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index 66218b57..cfb6e53e 100644
--- a/daemon.c
+++ b/daemon.c
@@ -183,7 +183,7 @@ nottyDetach:
}
if (logfile)
- open(logfile, O_CREAT|O_WRONLY, 0777); /* stdout */
+ fd = open(logfile, O_CREAT|O_WRONLY, 0777); /* stdout */
else
if (dup(fd) < 0) { /* stdout */
perror("dup");