hush: add tests for interrupting read

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2011-05-09 01:05:33 +02:00
parent 54e9e1217c
commit bcf1fa80f3
5 changed files with 21 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
(sleep 1; kill -HUP $$) &
trap 'echo "Got HUP:$?"; exit' HUP
while true; do
read ignored
done