From 885b6e7cdac9da7576ab5b4b3e29731ba66f7b47 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sun, 16 Sep 2012 18:40:39 -0400 Subject: [PATCH] When setting the signal handler for SIGTSTP to the default value in non-I/O log mode, store the old handler value for when we restore it after resume. --- src/exec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exec.c b/src/exec.c index 1c6427afb..f88054c7f 100644 --- a/src/exec.c +++ b/src/exec.c @@ -576,7 +576,7 @@ handle_signals(int sv[2], pid_t child, int log_io, struct command_status *cstat) zero_bytes(&sa, sizeof(sa)); sigemptyset(&sa.sa_mask); sa.sa_handler = SIG_DFL; - sigaction(SIGTSTP, &sa, NULL); + sigaction(SIGTSTP, &sa, &osa); } if (kill(getpid(), signo) != 0) warning("kill(%d, SIG%s)", (int)getpid(), signame); -- 2.50.1