1*3e3895bfSKrzysztof Piecuch# $FreeBSD: head/bin/sh/tests/execution/killed1.0 217557 2011-01-18 21:18:31Z jilles $ 23df4d8b0SPeter Avalos# Sometimes the "Killed" message is not flushed soon enough and it 33df4d8b0SPeter Avalos# is redirected along with the output of a builtin. 43df4d8b0SPeter Avalos# Do not change the semicolon to a newline as it would hide the bug. 53df4d8b0SPeter Avalos 63df4d8b0SPeter Avalosexec 3>&1 73df4d8b0SPeter Avalosexec >/dev/null 2>&1 83df4d8b0SPeter Avalos${SH} -c 'kill -9 $$'; : >&3 2>&3 9