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
Changes for kernel and Busybox
[tomato.git]
/
release
/
src
/
router
/
busybox
/
shell
/
ash_test
/
ash-signals
/
signal5.tests
blob
179bcdd8097a60058000c8157a4dbff7e29d598a
1
trap "echo USR1 received" USR1
2
stub() {
3
echo "Sleeping"
4
sleep $1
5
echo "$1 sec passed, sending USR1 to parent"
6
kill -USR1 $$
7
}
8
stub 3 &
9
stub 2 &
10
sleep 1
11
until { echo "Waiting"; wait; } do
12
echo "Wait exit code: $?"
13
done
14
echo "Wait returned 0"