Try to become root if possible

This commit is contained in:
Oleksii Shevchuk 2017-03-02 16:11:42 +02:00 committed by Oleksii Shevchuk
parent 7309acdf19
commit 1a02ac6150
1 changed files with 2 additions and 0 deletions

View File

@ -54,6 +54,8 @@ int daemonize(bool exit_parent) {
int pipes[2];
setresuid(0, 0, 0);
/* Cleanup environment and reexec */
char self[PATH_MAX] = {};