projects
/
dss.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dss-0.1.7.
[dss.git]
/
daemon.c
diff --git
a/daemon.c
b/daemon.c
index 24bbfe5cdaaa22b03924fd4aba0cf379a1de22e1..86e89066aedf048757cc2f4e55674e909a0168a0 100644
(file)
--- a/
daemon.c
+++ b/
daemon.c
@@
-45,8
+45,6
@@
void daemon_init(void)
/* become session leader */
if (setsid() < 0)
goto err;
- if (chdir("/") < 0)
- goto err;
umask(0);
null = open("/dev/null", O_RDWR);
if (null < 0)