From c36068357b32b90cf034991bad7e9e1386c396c7 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Thu, 9 Jun 2022 15:08:39 +0900 Subject: 50342: fix test added by 50306 --- ChangeLog | 5 +++++ Src/jobs.c | 2 ++ Test/A05execution.ztst | 2 +- 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b16668984..2dce207dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-06-09 Jun-ichi Takimoto + + * 50342: Src/jobs.c, Test/A05execution.ztst: fix test added by + 50306 + 2022-06-08 Bart Schaefer * 50341: Src/parse.c: disallow here-doc markers containing newline diff --git a/Src/jobs.c b/Src/jobs.c index aa32f4e80..e0e453ed8 100644 --- a/Src/jobs.c +++ b/Src/jobs.c @@ -2221,7 +2221,9 @@ addbgstatus(pid_t pid, int status) { static long child_max; Bgstatus bgstatus_entry; +#ifdef DEBUG LinkNode node; +#endif if (!child_max) { #ifdef _SC_CHILD_MAX diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index b257ddf2c..bcadc6d56 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -396,7 +396,7 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline # TBD: the 0 above is believed to be bogus and should also be turned # into 127 when the ccorresponding bug is fixed in the main shell. - sleep 1 & pid=$! + sleep 2 & pid=$! kill -STOP $pid sleep 1 kill -CONT $pid -- cgit 1.4.1