Author: delphij
Date: Mon Mar 5 17:06:34 2012
New Revision: 232549
URL: http://svn.freebsd.org/changeset/base/232549
Log:
MFC r231888:
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.
Modified:
stable/8/etc/rc.subr
Directory Properties:
stable/8/etc/ (props changed)
Modified: stable/8/etc/rc.subr
==============================================================================
--- stable/8/etc/rc.subr Mon Mar 5 16:37:51 2012 (r232548)
+++ stable/8/etc/rc.subr Mon Mar 5 17:06:34 2012 (r232549)
@@ -1027,9 +1027,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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"