Skip to content

Commit

Permalink
[linux][daemon] don't change dirs -> don't break relative paths
Browse files Browse the repository at this point in the history
  • Loading branch information
imranh2 committed Apr 6, 2024
1 parent ab97b56 commit 2c4560b
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/shared/PosixDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,6 @@ void startDaemon(uint32_t timeout)
exit(EXIT_FAILURE);
}

if ((chdir("/")) < 0)
{
exit(EXIT_FAILURE);
}

if (!freopen("/dev/null", "rt", stdin))
exit(EXIT_FAILURE);
if (!freopen("/dev/null", "wt", stdout))
Expand Down

0 comments on commit 2c4560b

Please sign in to comment.