From: Simon Ruderich Date: Sun, 4 Nov 2018 07:23:39 +0000 (+0100) Subject: Rename variable/error message for more sigaction() callers X-Git-Tag: 0.1~4 X-Git-Url: https://ruderich.org/simon/gitweb/?p=ptyas%2Fptyas.git;a=commitdiff_plain;h=0178c35881746d366a225b932f519f992035f24c;ds=sidebyside Rename variable/error message for more sigaction() callers --- diff --git a/ptyas.c b/ptyas.c index 2cd0cd6..d87ae34 100644 --- a/ptyas.c +++ b/ptyas.c @@ -425,12 +425,12 @@ int main(int argc, char **argv) { 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) {