diff --git a/src/tini.c b/src/tini.c index 6764cba..867c8e3 100644 --- a/src/tini.c +++ b/src/tini.c @@ -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