mirror of
https://github.com/savoirfairelinux/opendht.git
synced 2026-11-08 04:21:51 +00:00
tools: don't chdir to / when deamonizing
This commit is contained in:
1 parent
85f2b618c7
commit
332cab10ef
1 file changed
-4
@@ -283,10 +283,6 @@ void daemonize()
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
if ((chdir("/")) < 0) {
|
||||
exit(EXIT_FAILURE);
|
||||
}
|
||||
|
||||
close(STDIN_FILENO);
|
||||
close(STDOUT_FILENO);
|
||||
close(STDERR_FILENO);
|
||||
|
||||
Reference in new issue
Block a user