]> granicus.if.org Git - strace/commit
Fix unblocking of signals in interactive mode
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 27 May 2017 10:00:43 +0000 (10:00 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sat, 27 May 2017 10:00:43 +0000 (10:00 +0000)
commitf83b49b03ab5f47af5c4edf0c0f31b421bc74662
tree5815b1f7cf36deb884bcd1183d4b45fc19814ab5
parentab2efa7a5432f6280d42601f3241a30372d680d8
Fix unblocking of signals in interactive mode

In interactive mode (-I2), those signals that were blocked at startup
will remain blocked for the whole period of strace execution.

* strace.c (empty_set): Rename to start_set.  All users changed.
(init): Initialize start_set and blocked_set to the set of currently
blocked signals.
(startup_attach, trace): Use SIG_SETMASK instead of SIG_BLOCK.
* NEWS: Mention this change.
NEWS
strace.c