Unset Titus-specific environment variables

This commit is contained in:
Sargun Dhillon 2017-04-13 11:05:08 -07:00
parent 9012d088f2
commit 4f0a972340
1 changed files with 5 additions and 0 deletions

View File

@ -195,6 +195,11 @@ int spawn(const signal_configuration_t* const sigconf_ptr, char* const argv[], i
return 1;
}
// Unset TINI specific environment variables
unsetenv(REDIRECT_STDERR);
unsetenv(REDIRECT_STDOUT);
unsetenv(TITUS_CB_PATH);
execvp(argv[0], argv);
// execvp will only return on an error so make sure that we check the errno