[Pkg-nethack-devel] Bug#203229: Bugs present in Debian releases of NetHack

Dave Cohrs Dave Cohrs <d.cohrs@computer.org>, 203229@bugs.debian.org
Thu, 16 Oct 2003 09:19:39 -0700


Ben Gertzfield wrote:
> As a last note, I noticed that answering "y" to the "Do you want to 
> keep the save file?" question seems to echo "y" twice back to me.  It 
> might be a Linux issue, but I wondered if it was easy to fix. 
> (Answering "n" does not echo "n" twice, which is a little odd.)

This is due to a bug in a tty-specific hack in docompress_file().  The call
to mark_synch() should come before the fork(), not after.  As it is, this
causes stdout to be flushed both in the parent and the child process.

dave <d.cohrs@computer.org>