sh(1) exiting on SIGWINCH

Peter Jeremy peter at rulingia.com
Thu Jul 5 22:40:03 UTC 2012


On 2012-Jul-05 00:22:45 -0500, Brandon Gooch <jamesbrandongooch at gmail.com> 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.

-- 
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20120705/b66ba8fd/attachment.pgp


More information about the freebsd-stable mailing list