summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-trap/signal_read1.tests
diff options
context:
space:
mode:
authorDenys Vlasenko2011-05-09 01:05:33 +0200
committerDenys Vlasenko2011-05-09 01:05:33 +0200
commitbcf1fa80f31468a2299b681dd096d41a0b5ed7f4 (patch)
tree38b0b3756b33195b56bb9e98f53c02eeb2ac2f31 /shell/hush_test/hush-trap/signal_read1.tests
parent54e9e1217c67563d70d6e2b14021293f707d7927 (diff)
downloadbusybox-bcf1fa80f31468a2299b681dd096d41a0b5ed7f4.zip
busybox-bcf1fa80f31468a2299b681dd096d41a0b5ed7f4.tar.gz
hush: add tests for interrupting read
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/hush_test/hush-trap/signal_read1.tests')
-rwxr-xr-xshell/hush_test/hush-trap/signal_read1.tests5
1 files changed, 5 insertions, 0 deletions
diff --git a/shell/hush_test/hush-trap/signal_read1.tests b/shell/hush_test/hush-trap/signal_read1.tests
new file mode 100755
index 0000000..1105479
--- /dev/null
+++ b/shell/hush_test/hush-trap/signal_read1.tests
@@ -0,0 +1,5 @@
+(sleep 1; kill -HUP $$) &
+trap 'echo "Got HUP:$?"; exit' HUP
+while true; do
+ read ignored
+done