about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2018-09-07 09:43:51 +0100
committerPeter Stephenson <p.stephenson@samsung.com>2018-09-07 09:43:51 +0100
commitb8918c8241973fc9c0c1690e7ba471ec1f73d42f (patch)
treede78881d5fcc4294f00e906c468d79f2a85e2974
parent165000113a869312b9d0920f42d8548a12c4d324 (diff)
downloadzsh-b8918c8241973fc9c0c1690e7ba471ec1f73d42f.tar.gz
zsh-b8918c8241973fc9c0c1690e7ba471ec1f73d42f.tar.xz
zsh-b8918c8241973fc9c0c1690e7ba471ec1f73d42f.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 e00fae01d..c46d32e7e 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1066,6 +1066,9 @@ entersubsh(int flags)
 	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
@@ -1075,6 +1078,9 @@ entersubsh(int flags)
 	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