Re: mg: don't spin when stdin is lost

2013-01-21 Thread Loganaden Velvindron
On Mon, Jan 14, 2013 at 9:16 PM, Florian Obser wrote: > this can be tested like this: > EDITOR=mg cvs commit > kill cvs > -> mg spins with 100% cpu in ttgetc > > Might be related to what I saw a few times. When I detached screen or tmux, and go back, cpu would shoot to 100%. > While there preve

mg: don't spin when stdin is lost

2013-01-14 Thread Florian Obser
this can be tested like this: EDITOR=mg cvs commit kill cvs -> mg spins with 100% cpu in ttgetc While there prevent an unterminated recursion in panic (via ttclose). I'm not particularly happy with the errorhandling in ttgetc, but this is the least intrusive change. comments, oks? diff --git tty