From owner-freebsd-bugs@FreeBSD.ORG Mon Oct 17 19:00:35 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B47AC106564A for ; Mon, 17 Oct 2011 19:00:35 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A2F7A8FC15 for ; Mon, 17 Oct 2011 19:00:35 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p9HJ0Zrt049921 for ; Mon, 17 Oct 2011 19:00:35 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p9HJ0ZhO049916; Mon, 17 Oct 2011 19:00:35 GMT (envelope-from gnats) Date: Mon, 17 Oct 2011 19:00:35 GMT Message-Id: <201110171900.p9HJ0ZhO049916@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jeremy Chadwick 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 Reply-To: Jeremy Chadwick List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Oct 2011 19:00:35 -0000 The following reply was made to PR bin/161739; it has been noted by GNATS. From: Jeremy Chadwick To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org Cc: Subject: Re: bin/161739: top -b does not restore ICANON and ECHO terminal capabilities when exiting Date: Mon, 17 Oct 2011 11:55:42 -0700 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 |