ash: add testcase for bug 5304

This commit is contained in:
Denis Vlasenko 2008-10-27 14:33:03 +00:00
parent be54d6bc60
commit 6214941a3a
2 changed files with 15 additions and 0 deletions

View File

@ -0,0 +1 @@
Ok

View 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