Hello guys;

--- Gio 5/7/12, Peter Jeremy <pe...@rulingia.com> ha scritto:

> Brandon Gooch <jamesbrandongo...@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.
> 

I am trying hard to identify the specific changes from
NetBSD that caused the issue. The problem is known to
happen in the latest version of the upstream sources
too but I don't want to revert all the patch if I can
avoid it because it is becoming increasingly difficult
update libedit and we need some of the new features.

It seems like David Shao's issue is different but so
far I am aware that the issue was introduced in the
changes associated with read.c

http://cvsweb.netbsd.org/bsdweb.cgi/src/lib/libedit/read.c

NetBSD fixed the SIGWINCH issue in revisions 1.55, 1.56
and 1.57 of that file but it was caused by revision 1.43

the EOF issue seems to be caused by Revision 1.49 

I still have to play more with this.

Pedro.
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"

Reply via email to