Bug 13231

Summary: ash: wait "$pid" is broken in busybox 1.32.0
Product: Busybox Reporter: Koichi Nakashima <koichi>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: busybox-cvs
Priority: P5    
Version: 1.32.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.