nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] error while using nano in a chroot


From: David Lawrence Ramsey
Subject: Re: [Nano-devel] error while using nano in a chroot
Date: Fri, 07 Oct 2005 01:14:00 -0400
User-agent: Mozilla Thunderbird 1.0.7 (X11/20050923)

Mike Frysinger wrote:

<snip>

>ok, this quirk i think we can ignore ... using your hint to look into
>handle_sigwinch(), i found that it was a matter of my /dev/pts being
>empty
>
>my chroot had /dev bind mounted to chroot/dev but i did not have
>/dev/pts bind mounted to chroot/dev/pts
>
>handle_sigwinch() would call ttyname() which would return /dev/pts/17
>which it would then try to open() for read/write ... however, since my
>/dev/pts was empty, nano would exit the function without doing any work
>
>i guess the quirk that i could get it to sometimes resize is related to the
>comment right about COLS/LINES:
>    /* Could check whether the COLS or LINES changed, and return
>     * otherwise.  EXCEPT, that COLS and LINES are ncurses global
>     * variables, and in some cases ncurses has already updated them.
>     * But not in all cases, argh. */
>
>sorry for all the hubbub :)

No problem.  It's good to know why it happens, in any case.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]