Cleanup interactive check

* strace.c (init): Check for INTR_WHILE_WAIT mode the same way
as in other places.
This commit is contained in:
Дмитрий Левин 2017-05-26 23:16:57 +00:00
parent ea64209ef7
commit ab2efa7a54

View File

@ -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);