From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 17 19:08:59 2011 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC088106566C for ; Mon, 17 Oct 2011 19:08:59 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from qmta01.westchester.pa.mail.comcast.net (qmta01.westchester.pa.mail.comcast.net [76.96.62.16]) by mx1.freebsd.org (Postfix) with ESMTP id 7E1728FC08 for ; Mon, 17 Oct 2011 19:08:59 +0000 (UTC) Received: from omta19.westchester.pa.mail.comcast.net ([76.96.62.98]) by qmta01.westchester.pa.mail.comcast.net with comcast id lqyz1h00427AodY51uvkQJ; Mon, 17 Oct 2011 18:55:44 +0000 Received: from koitsu.dyndns.org ([67.180.84.87]) by omta19.westchester.pa.mail.comcast.net with comcast id luvj1h00i1t3BNj3fuvj90; Mon, 17 Oct 2011 18:55:44 +0000 Received: by icarus.home.lan (Postfix, from userid 1000) id 33B7A102C1C; Mon, 17 Oct 2011 11:55:42 -0700 (PDT) Date: Mon, 17 Oct 2011 11:55:42 -0700 From: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Message-ID: <20111017185542.GA97233@icarus.home.lan> References: <20111017115534.EB277102C1C@icarus.home.lan> <201110171200.p9HC0OK2051258@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201110171200.p9HC0OK2051258@freefall.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Subject: Re: bin/161739: top -b does not restore ICANON and ECHO terminal capabilities when exiting X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 19:08:59 -0000 Follow-up: Something I was thinking about as I was falling asleep last night: there's a good possibility the problem is actually reversed. That is to say, ICANON/ECHO is being adjusted when in "top -b" mode it shouldn't be. If this is the case, some simple if()s should do the trick. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, US | | Making life hard for others since 1977. PGP 4BD6C0CB |