Author: ed Date: Wed Mar 14 16:10:39 2012 New Revision: 232976 URL: http://svn.freebsd.org/changeset/base/232976
Log: Hide stty(1) errors. If rc(8) is executed without using a TTY, this error appears at the beginning: stty: stdin isn't a terminal Because this is to be expected and of course not harmful, it is better to simply hide the error message. MFC after: 1 week Modified: head/etc/rc head/etc/rc.shutdown Modified: head/etc/rc ============================================================================== --- head/etc/rc Wed Mar 14 15:52:23 2012 (r232975) +++ head/etc/rc Wed Mar 14 16:10:39 2012 (r232976) @@ -38,7 +38,7 @@ # first before contemplating any changes here. If you do need to change # this file for some reason, we would like to know about it. -stty status '^T' +stty status '^T' 2> /dev/null # Set shell to ignore SIGINT (2), but not children; # shell catches SIGQUIT (3) and returns to single user. Modified: head/etc/rc.shutdown ============================================================================== --- head/etc/rc.shutdown Wed Mar 14 15:52:23 2012 (r232975) +++ head/etc/rc.shutdown Wed Mar 14 16:10:39 2012 (r232976) @@ -32,7 +32,7 @@ # Output and errors are directed to console by init, and the # console is the controlling terminal. -stty status '^T' +stty status '^T' 2> /dev/null # Set shell to ignore SIGINT (2), but not children; # shell catches SIGQUIT (3) and returns to single user after fsck. _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"