commit | 8dbea7dbb1b18135a02a0a2c8f7ab9fdb27a59a7 | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 26 14:20:04 2008 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Sat Jul 26 14:20:04 2008 +0000 |
tree | 5467541f5e08d70ef9719dd22d7d15ffe0b11aec | |
parent | 160e6fa53ae434a5dc3e82f69cb2f0264b86f6ee [diff] [blame] |
ash: add slightly different testcase
diff --git a/shell/ash_test/ash-signals/signal3.tests b/shell/ash_test/ash-signals/signal3.tests new file mode 100755 index 0000000..b56c2d9 --- /dev/null +++ b/shell/ash_test/ash-signals/signal3.tests
@@ -0,0 +1,17 @@ +#!/bin/sh + +$THIS_SH -c ' +hup() { + echo "child got HUP" +} +trap hup HUP +echo "child sleeps" +sleep 1 +echo "child exits" +' & + +child=$! +sleep 0.1 # let child install handler first +kill -HUP $child +wait +echo "parent exits"