repo.or.cz
/
tomato.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Tomato 1.28
[tomato.git]
/
release
/
src
/
router
/
busybox
/
shell
/
ash_test
/
ash-signals
/
reap1.tests
blob
bf1a1f90825e5fb3b6622fbc58262ab15f72e76c
1
#!/bin/sh
2
3
# Must not find us alive
4
{
sleep
2
;
kill -9
$$
; }
2
>/
dev
/
null
&
5
6
sleep
1
&
7
PID
=
$
!
8
9
# We must exit the loop in one second.
10
# We had bug 5304: builtins never waited for exited children
11
while
kill -0
$PID
>/
dev
/
null
2
>&
1
;
do
12
true
13
done
14
echo
Ok