Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 27 Sep 1997 10:40:08 +0200
From:      j@uriah.heep.sax.de (J Wunsch)
To:        freebsd-hackers@FreeBSD.ORG
Subject:   Re: ee taking up weird cpu amount.
Message-ID:  <19970927104008.PZ43927@uriah.heep.sax.de>
In-Reply-To: <Pine.BSF.3.91.970925162705.262G-100000@panda.hilink.com.au>; from Daniel O'Callaghan on Sep 25, 1997 16:28:12 %2B1000
References:  <Pine.BSF.3.96.970925064453.25448A-100000@silent.darkening.com> <Pine.BSF.3.91.970925162705.262G-100000@panda.hilink.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
As Daniel O'Callaghan wrote:

> Kill the process. The vty has been disconnected without logging out, so 
> ee goes into a loop.  vi and pico do the same thing.

Btw., it seems to be a bug in ncurses.  ee correctly checks for an
error return from wgetch() (albeit using -1, as opposed to the opaque
macro ERR), but wgetch() is returning 0.

(gdb) step
Single stepping until exit from function wrefresh, 
which has no line number information.
main (argc=2, argv=0xefbfd7e4) at /usr/src/usr.bin/ee/ee.c:608
608                     in = wgetch(text_win);
(gdb) 
609                     if (in == -1)
(gdb) print in
$2 = 0
(gdb) list
604
605             while(edit) 
606             {
607                     wrefresh(text_win);
608                     in = wgetch(text_win);
609                     if (in == -1)
610                             exit(0);
611
612                     resize_check();
613

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970927104008.PZ43927>