mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 00:55:11 +00:00
ash: add testcase for bug 5304
This commit is contained in:
parent
be54d6bc60
commit
6214941a3a
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 New Issue
Block a user