aboutsummaryrefslogtreecommitdiff
path: root/shell/msh_test/msh-execution/many_continues.tests
blob: 86c729abc330052e06d719d12b0381a356288de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
if test $# = 0; then
    # Child will kill us in 1 second
    "$THIS_SH" "$0" $$ &

    # Loop many, many times
    trap 'echo OK; exit 0' 15
    while true; do
	continue
    done
    echo BAD
    exit 1
fi

sleep 1
kill $1