Date: Wed, 14 Mar 2012 16:10:39 +0000 (UTC) From: Ed Schouten <ed@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r232976 - head/etc Message-ID: <201203141610.q2EGAdHS020983@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203141610.q2EGAdHS020983>