Gitiles
Code Review
Sign In
gerrit.nordix.org
/
codeaurora
/
busybox
/
5fa0505f8a74848ce4d2a7a4ed905e1bb8af3fe6
/
.
/
shell
/
ash_test
/
ash-misc
/
wait6.tests
blob: c237131993ab52835f27ec76a87a4875fe9d1235 [
file
] [
log
] [
blame
]
# In bash, "wait $!" extracts correct exitcode even if bg task has already exited
# It prints 0, then 3:
(
sleep
0
;
exit
3
)
&
sleep
1
echo $
?
wait $
!
echo $
?