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 8, 2024
1 parent 40208b1 commit 4f26d1a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/shared/PosixDaemon.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,9 @@ void startDaemon(uint32_t timeout)
exit(EXIT_FAILURE);
}

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

close(STDIN_FILENO);
close(STDOUT_FILENO);
close(STDERR_FILENO);

}

void stopDaemon()
Expand Down

0 comments on commit 4f26d1a

Please sign in to comment.