From 22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2 Mon Sep 17 00:00:00 2001 From: Jun-ichi Takimoto Date: Fri, 3 Jun 2022 19:32:56 +0900 Subject: 50306: fix wait for child that was stopped/continued do not call addbgstatus() when child is stopped/continued --- Test/A05execution.ztst | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Test') diff --git a/Test/A05execution.ztst b/Test/A05execution.ztst index d95ee363c..b257ddf2c 100644 --- a/Test/A05execution.ztst +++ b/Test/A05execution.ztst @@ -396,6 +396,13 @@ 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=$! + kill -STOP $pid + sleep 1 + kill -CONT $pid + wait $pid +0:wait for stopped and continued process + # Without the outer subshell, the test harness reports the pre-46060 behaviour # as "skipped" rather than "failed". (( exit 130 ) | { sleep 1; echo hello }) -- cgit 1.4.1