summaryrefslogtreecommitdiffstats
path: root/tools/regression/bin/sh/builtins/break2.0
blob: ff52dd32146919c32ba4e62fdb4f07211ea30ea8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# $FreeBSD$

# It is not immediately obvious that this should work, and someone probably
# relies on it.

while :; do
	trap 'break' USR1
	kill -USR1 $$
	echo bad
	exit 1
done
echo good
OpenPOWER on IntegriCloud