From owner-freebsd-stable@FreeBSD.ORG Thu Jul 5 22:40:03 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 07067106566B; Thu, 5 Jul 2012 22:40:03 +0000 (UTC) (envelope-from peter@rulingia.com) Received: from vps.rulingia.com (host-122-100-2-194.octopus.com.au [122.100.2.194]) by mx1.freebsd.org (Postfix) with ESMTP id 863418FC08; Thu, 5 Jul 2012 22:40:02 +0000 (UTC) Received: from server.rulingia.com (c220-239-248-69.belrs5.nsw.optusnet.com.au [220.239.248.69]) by vps.rulingia.com (8.14.5/8.14.5) with ESMTP id q65Mdxp9036805 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 6 Jul 2012 08:40:00 +1000 (EST) (envelope-from peter@rulingia.com) X-Bogosity: Ham, spamicity=0.000000 Received: from server.rulingia.com (localhost.rulingia.com [127.0.0.1]) by server.rulingia.com (8.14.5/8.14.5) with ESMTP id q65MdsRA086386 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 6 Jul 2012 08:39:54 +1000 (EST) (envelope-from peter@server.rulingia.com) Received: (from peter@localhost) by server.rulingia.com (8.14.5/8.14.5/Submit) id q65MdqEx086385; Fri, 6 Jul 2012 08:39:52 +1000 (EST) (envelope-from peter) Date: Fri, 6 Jul 2012 08:39:52 +1000 From: Peter Jeremy To: Brandon Gooch Message-ID: <20120705223952.GD85696@server.rulingia.com> References: <20120704100332.GA70705@server.rulingia.com> <20120704220847.GA27624@server.rulingia.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="Xm/fll+QQv+hsKip" Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.rulingia.com/keys/peter.pgp User-Agent: Mutt/1.5.21 (2010-09-15) Cc: David Shao , Pedro Giffuni , freebsd-stable@freebsd.org, Jilles Tjoelker Subject: Re: sh(1) exiting on SIGWINCH X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jul 2012 22:40:03 -0000 --Xm/fll+QQv+hsKip Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2012-Jul-05 00:22:45 -0500, Brandon Gooch = wrote: >Seems that the window resize is somehow causing sh(1) to receive an >EOF while the shell is sitting at the prompt, which results in the >shell exiting; haven't dug too deeply into the source yet, but can you >try to run /bin/sh with the '-I' (that's capital letter 'i') and it >the shell shouldn't exit (but it will bark at you with a 'Use "exit" >to leave shell.' message on each resize. Interesting. I hadn't tried '-I' but now also see that. >I'm CC'ing jilles@ for any potential insight into the behavior of >sh(1) (and perhaps this updated libedit snapshot). I would also welcome any insights jilles@ can offer. pfg@ (who shepherded the libedit update into the tree), David Shao (originator of kern/169603) and I have been investigating fixes to libedit but do not have a solution yet. There is a possibility that sh(1) is relying on bugs in the old libedit. At this stage, it seems likely that the libedit update (r237738) will be reverted for 9.1-RELEASE. --=20 Peter Jeremy --Xm/fll+QQv+hsKip Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAk/2F7gACgkQ/opHv/APuIeDcwCgwHSXidnwZKt7j2k+35ED6Jlf FbMAnir9a50pRHI0aUsFdonIaHc5vt9P =dU3q -----END PGP SIGNATURE----- --Xm/fll+QQv+hsKip--