Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Dan Chak , Eli Zaretskii From: Nate Eldredge Subject: Re: CTRL-C runs an infinite loop Cc: DJGPP Date: Sun, 10 May 1998 20:54:39 -0700 Message-ID: <19980511035425.AAE4598@ppp107.cartsys.com> Precedence: bulk At 03:34 5/10/1998 -0400, Dan Chak wrote: >Eli Zaretskii wrote: >> >> On Sun, 10 May 1998, Dan Chak wrote: >> >> > I'm having some strange behavior with DJGPP where when I hit Control-C >> > to break out of my program, I get an infinite loop of the following, >> > instead of being returned to the dos prompt. >> >> One possibility is that you are overflowing the stack, or otherwise >> overwriting it. >> >> But for a better answer, please run your program with stderr redirected >> to a file, and post here the beginning of this infinite loop of crashes. >> The first two tracebacks hold the important clues about why does it >> crash, the rest are just the usual DOS/Windows madness. >> > >This might sound a little silly, but how does one redirect stderr? I've >never really used it. Do I just open a file and reassign it stderr to >that new file? I assume it's stderr is pointer to a buffer? It's much easier than that; it can be done from the DOS level. redir -e error.log myprog `redir' is a utility that comes with DJGPP. Nate Eldredge nate AT cartsys DOT com