Skip to content
Snippets Groups Projects
Commit 332cab10 authored by Adrien Béraud's avatar Adrien Béraud
Browse files

tools: don't chdir to / when deamonizing

parent 85f2b618
Branches
Tags
No related merge requests found
......@@ -283,10 +283,6 @@ void daemonize()
exit(EXIT_FAILURE);
}
if ((chdir("/")) < 0) {
exit(EXIT_FAILURE);
}
close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment