close_or_die(pty_slave);
pid_to_wait_for = pid;
- struct sigaction action = {
+ struct sigaction action_sigchld = {
.sa_handler = sigchld_handler,
};
- sigemptyset(&action.sa_mask);
- if (sigaction(SIGCHLD, &action, NULL) != 0) {
- die("sigaction");
+ sigemptyset(&action_sigchld.sa_mask);
+ if (sigaction(SIGCHLD, &action_sigchld, NULL) != 0) {
+ die("sigaction SIGCHLD");
}
if (sigprocmask(SIG_SETMASK, &sigset_old, NULL) != 0) {