1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00

40624: conditionally handle WIFCONTINUED to properly set SP_RUNNING process status

This commit is contained in:
Barton E. Schaefer 2017-02-23 16:19:07 -08:00
parent 8328b79286
commit 12d950ba0c
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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