Skip to content

Commit

Permalink
merge branch 'pr-11'
Browse files Browse the repository at this point in the history
Andrey Golovizin (1):
  Use environ instead of __environ

LGTMs: @cyphar
Closes #11
  • Loading branch information
cyphar committed Mar 2, 2021
2 parents 39aa834 + 75014b1 commit 932bfab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion catatonit.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ static int spawn_pid1(char *file, char **argv, sigset_t *sigmask)
if (sigprocmask(SIG_SETMASK, sigmask, NULL) < 0)
bail("failed to reset sigmask: %m");

execvpe(file, argv, __environ);
execvpe(file, argv, environ);
bail("failed to exec pid1: %m");
}

Expand Down

0 comments on commit 932bfab

Please sign in to comment.