Rename variable/error message for more sigaction() callers
authorSimon Ruderich <simon@ruderich.org>
Sun, 4 Nov 2018 07:23:39 +0000 (08:23 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 4 Nov 2018 07:23:39 +0000 (08:23 +0100)
ptyas.c

diff --git a/ptyas.c b/ptyas.c
index 2cd0cd62ac575974b6cf253f28a21cf8231cccc0..d87ae34738e2f8321f6df618b81737db894d4365 100644 (file)
--- 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) {