projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Allow to start server and audiod as daemon with no logfile.
[paraslash.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index 316432e68a5f116c9f2035d9bfb661b99b7061a1..ca74595695985ad866c6ad849cbc343e2801850a 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-199,7
+199,7
@@
void daemonize(bool parent_waits)
goto err;
if (chdir("/") < 0)
goto err;
- null = open("/dev/null", O_RD
ONLY
);
+ null = open("/dev/null", O_RD
WR
);
if (null < 0)
goto err;
if (dup2(null, STDIN_FILENO) < 0)