summaryrefslogtreecommitdiff
path: root/daemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemon.c')
-rw-r--r--daemon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon.c b/daemon.c
index ef250bd..9cb7884 100644
--- a/daemon.c
+++ b/daemon.c
@@ -57,7 +57,7 @@ int daemon(int nochdir, int noclose)
if (nochdir == 0)
(void)chdir("/");
- if (noclose==0 && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
+ if (noclose == 0 && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
(void)dup2(fd, STDIN_FILENO);
(void)dup2(fd, STDOUT_FILENO);
(void)dup2(fd, STDERR_FILENO);