1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Put the signal trap output to standard error instead of standard output.

Without this change, pressing ^T could result in rc.d script putting
junk strings like:

	Script <filename> running

in configuration files when redirecting standard output to these files.

MFC after:	2 weeks
This commit is contained in:
Xin LI 2012-02-18 00:46:18 +00:00
parent 3494f31ad2
commit 90de8d2a65
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231888

View File

@ -985,9 +985,9 @@ run_rc_script()
if [ -n "$rc_fast_and_loose" ]; then
set $_arg; . $_file
else
( trap "echo Script $_file interrupted; kill -QUIT $$" 3
trap "echo Script $_file interrupted; exit 1" 2
trap "echo Script $_file running" 29
( trap "echo Script $_file interrupted >&2 ; kill -QUIT $$" 3
trap "echo Script $_file interrupted >&2 ; exit 1" 2
trap "echo Script $_file running >&2" 29
set $_arg; . $_file )
fi
fi