summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--Src/signals.c5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d3ce452bc..8a0e059a2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-02-23 Barton E. Schaefer <schaefer@zsh.org>
+
+ * 40624 (cf. Danek Duvall, 40563): Src/signals.c: conditionally
+ handle WIFCONTINUED to properly set SP_RUNNING process status
+
2017-02-23 Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp>
* 40604: configure.ac, Src/watch.c: revert to the old method if
diff --git a/Src/signals.c b/Src/signals.c
index a7176771a..68a7ae34d 100644
--- a/Src/signals.c
+++ b/Src/signals.c
@@ -522,6 +522,11 @@ wait_for_processes(void)
#if defined(HAVE_WAIT3) && defined(HAVE_GETRUSAGE)
struct timezone dummy_tz;
gettimeofday(&pn->endtime, &dummy_tz);
+#ifdef WIFCONTINUED
+ if (WIFCONTINUED(status))
+ pn->status = SP_RUNNING;
+ else
+#endif
pn->status = status;
pn->ti = ru;
#else