]> git.ipfire.org Git - thirdparty/bash.git/blobdiff - tests/trap.tests
Imported from ../bash-4.0-rc1.tar.gz.
[thirdparty/bash.git] / tests / trap.tests
index 9aac72545069c248be703eae14f42b8be39c002b..83497a31c169c71a763364c5eea1b07c97cfb895 100644 (file)
@@ -75,6 +75,7 @@ trap 'echo caught a child death' SIGCHLD
 
 sleep 7 & sleep 6 & sleep 5 &
 
+# this will only catch the first, since there's a trap on SIGCHLD
 wait
 
 trap -p SIGCHLD
@@ -84,3 +85,6 @@ trap -p SIGCHLD
 trap - SIGINT QUIT TERM
 
 trap
+
+trap - SIGCHLD
+wait