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:
parent
3494f31ad2
commit
90de8d2a65
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=231888
@ -985,9 +985,9 @@ run_rc_script()
|
|||||||
if [ -n "$rc_fast_and_loose" ]; then
|
if [ -n "$rc_fast_and_loose" ]; then
|
||||||
set $_arg; . $_file
|
set $_arg; . $_file
|
||||||
else
|
else
|
||||||
( trap "echo Script $_file interrupted; kill -QUIT $$" 3
|
( trap "echo Script $_file interrupted >&2 ; kill -QUIT $$" 3
|
||||||
trap "echo Script $_file interrupted; exit 1" 2
|
trap "echo Script $_file interrupted >&2 ; exit 1" 2
|
||||||
trap "echo Script $_file running" 29
|
trap "echo Script $_file running >&2" 29
|
||||||
set $_arg; . $_file )
|
set $_arg; . $_file )
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user