mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +00:00
ash: add testcase for bug 5304
This commit is contained in:
parent
be54d6bc60
commit
6214941a3a
2 changed files with 15 additions and 0 deletions
1
shell/ash_test/ash-signals/reap1.right
Normal file
1
shell/ash_test/ash-signals/reap1.right
Normal file
|
|
@ -0,0 +1 @@
|
|||
Ok
|
||||
14
shell/ash_test/ash-signals/reap1.tests
Executable file
14
shell/ash_test/ash-signals/reap1.tests
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Must not find us alive
|
||||
{ sleep 2; kill -9 $$; } 2>/dev/null &
|
||||
|
||||
sleep 1 &
|
||||
PID=$!
|
||||
|
||||
# We must exit the loop in one second.
|
||||
# We had bug 5304: builtins never waited for exited children
|
||||
while kill -0 $PID >/dev/null 2>&1; do
|
||||
true
|
||||
done
|
||||
echo Ok
|
||||
Loading…
Reference in a new issue