summary refs log tree commit diff
path: root/bin/cash/tests/builtins/trap14.0
blob: ce49b4c9d4a91cbb09e1ec1af7eca2eb87cda551 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# $FreeBSD: releng/12.0/bin/sh/tests/builtins/trap14.0 257399 2013-10-30 21:36:15Z jilles $

{
	trap - INT
	${SH} -c 'kill -INT $PPID' &
	wait
} &
wait $!
r=$?
[ "$r" -gt 128 ] && [ "$(kill -l "$r")" = INT ]