mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
4e19a9c81a
function old new delta evaltree 621 869 +248 popstring 134 140 +6
19 lines
252 B
Bash
Executable File
19 lines
252 B
Bash
Executable File
#!/bin/sh
|
|
|
|
$THIS_SH -c '
|
|
cleanup() {
|
|
echo "child exits as expected"
|
|
exit
|
|
}
|
|
trap cleanup HUP
|
|
echo "sleeping"
|
|
sleep 1
|
|
echo "BAD exit from child!"
|
|
' &
|
|
|
|
child=$!
|
|
sleep 0.1 # let child install handler first
|
|
kill -HUP $child
|
|
wait
|
|
echo "parent exits"
|