From 0178c35881746d366a225b932f519f992035f24c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 4 Nov 2018 08:23:39 +0100 Subject: [PATCH] Rename variable/error message for more sigaction() callers --- ptyas.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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) { -- 2.45.2