* strace.c (init) [daemonized_tracer && !opt_intr]: Set opt_intr
to INTR_BLOCK_TSTP_TOO.
* strace.1.in: Document this.
* NEWS: Mention this change.
Resolves: https://github.com/strace/strace/issues/96
Noteworthy changes in release ?.?? (????-??-??)
===============================================
+* Changes in behavior
+ * -D option now implies -I4: by default strace ignores SIGHUP, SIGINT,
+ SIGQUIT, SIGPIPE, SIGTERM, SIGTTIN, SIGTTOU, and SIGTSTP when -D option
+ is used.
+
* Improvements
* Enhanced xlat styles support configured by -X option.
* Enhanced decoding of bpf syscall.
are always blocked (useful to make
.BI "strace -o " "FILE PROG"
not stop on
-.BR CTRL\-Z ).
+.BR CTRL\-Z ,
+default if
+.BR \-D ).
.RE
.SS Startup
.TP 12
INTR_ANYWHERE = 1, /* don't block/ignore any signals */
INTR_WHILE_WAIT = 2, /* block fatal signals while decoding syscall. default */
INTR_NEVER = 3, /* block fatal signals. default if '-o FILE PROG' */
- INTR_BLOCK_TSTP_TOO = 4, /* block fatal signals and SIGTSTP (^Z) */
+ INTR_BLOCK_TSTP_TOO = 4, /* block fatal signals and SIGTSTP (^Z); default if -D */
NUM_INTR_OPTS
};
static int opt_intr;
* no 1 1 INTR_WHILE_WAIT
*/
+ if (daemonized_tracer && !opt_intr)
+ opt_intr = INTR_BLOCK_TSTP_TOO;
if (outfname && argc) {
if (!opt_intr)
opt_intr = INTR_NEVER;