Bug 13231 - ash: wait "$pid" is broken in busybox 1.32.0
Summary: ash: wait "$pid" is broken in busybox 1.32.0
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.32.x
Hardware: All Linux
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-25 20:26 UTC by Koichi Nakashima
Modified: 2020-09-30 11:45 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Koichi Nakashima 2020-09-25 20:26:24 UTC
I expected to sleep for 1 second below example, but sleep for 5 seconds. No problem with busybox 1.31.1.

```console
~/busybox # cat a.sh
#!/bin/sh

date
( sleep 1 ) &
pid=$!
( sleep 5 ) &
wait "$pid"
date

~/busybox # ./busybox ash a.sh
Fri Sep 25 20:03:35 UTC 2020
Fri Sep 25 20:03:40 UTC 2020
```
Comment 1 Denys Vlasenko 2020-09-29 18:39:31 UTC
Fixed in git, please try it.
Comment 2 Koichi Nakashima 2020-09-30 11:45:23 UTC
Thanks! I confirmed it has been fixed. It would be great if it merged into busybox 1.32.x because it is a significant impact.