projects
/
dss.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c6346c
)
daemon: Do not change to /.
author
Andre Noll
<maan@tuebingen.mpg.de>
Tue, 14 Jun 2016 08:40:22 +0000
(10:40 +0200)
committer
Andre Noll
<maan@tuebingen.mpg.de>
Sun, 21 Aug 2016 19:13:25 +0000
(21:13 +0200)
This is pointless because we immediately cd back into the destination
dir anyway.
daemon.c
patch
|
blob
|
history
diff --git
a/daemon.c
b/daemon.c
index
24bbfe5
..
86e8906
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)