From ab2efa7a5432f6280d42601f3241a30372d680d8 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 26 May 2017 23:16:57 +0000 Subject: [PATCH] Cleanup interactive check * strace.c (init): Check for INTR_WHILE_WAIT mode the same way as in other places. --- strace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strace.c b/strace.c index 99fb571a..e41c0da8 100644 --- a/strace.c +++ b/strace.c @@ -1927,7 +1927,7 @@ init(int argc, char *argv[]) * and acted on in between, when waiting for new syscall stops. * In non-interactive mode, signals are ignored. */ - if (opt_intr == INTR_WHILE_WAIT) { + if (interactive) { sigaddset(&blocked_set, SIGHUP); sigaddset(&blocked_set, SIGINT); sigaddset(&blocked_set, SIGQUIT); -- 2.50.1