summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-09-07 09:43:51 +0100
committerPeter Stephenson <p.w.stephenson@ntlworld.com>2018-09-16 17:42:31 +0100
commitefe470254cce0a2805e899ab4afe7188018c22dc (patch)
tree9180ee47fbb6c504d2ba560905c6990936ae12e7
parent43396: Job control debug. (diff)
downloadzsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar.gz
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar.bz2
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar.lz
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar.xz
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.tar.zst
zsh-efe470254cce0a2805e899ab4afe7188018c22dc.zip
More debug
-rw-r--r--Src/exec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 234bbdc1f..ad709d307 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1081,6 +1081,9 @@ entersubsh(int flags, struct entersubsh_ret *retp)
release_pgrp();
shout = NULL;
if (flags & ESUB_NOMONITOR) {
+#ifdef DEBUG_JOB_CONTROL
+ fprintf(stderr, "subsh with no monitor, blocking signals\n");
+#endif
/*
* Allowing any form of interactive signalling here is
* actively harmful as we are in a context where there is no
@@ -1090,6 +1093,9 @@ entersubsh(int flags, struct entersubsh_ret *retp)
signal_ignore(SIGTTIN);
signal_ignore(SIGTSTP);
} else if (!job_control_ok) {
+#ifdef DEBUG_JOB_CONTROL
+ fprintf(stderr, "subsh with no job control, blocking signals\n");
+#endif
/*
* If this process is not going to be doing job control,
* we don't want to do special things with the corresponding