diff options
author | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-06-03 19:32:56 +0900 |
---|---|---|
committer | Jun-ichi Takimoto <takimoto-j@kba.biglobe.ne.jp> | 2022-06-03 19:32:56 +0900 |
commit | 22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2 (patch) | |
tree | 3c6a40302e7ba513f75aa10b918793d56abcf5f6 /Test | |
parent | 8756cc6add3d27d05e869fc7317e3043ab2be5b2 (diff) | |
download | zsh-22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2.tar.gz zsh-22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2.tar.xz zsh-22b1a91c2a07e6d6a57975a1ab47d66f92aa21f2.zip |
50306: fix wait for child that was stopped/continued
do not call addbgstatus() when child is stopped/continued
Diffstat (limited to 'Test')
-rw-r--r-- | Test/A05execution.ztst | 7 |
1 files changed, 7 insertions, 0 deletions
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 }) |