X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f Message-ID: <20020114130428.52974.qmail@web9107.mail.yahoo.com> Date: Mon, 14 Jan 2002 05:04:28 -0800 (PST) From: ROLAND Subject: Re: PMCOM & signals To: Eli Zaretskii Cc: djgpp AT delorie DOT com In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk --- Eli Zaretskii wrote: > I don't understand: are you saying that adding this > line: > > __djgpp_set_ctrl_c(0); > > to your program breaks it? That is, with this line > in your program, > pressing Ctrl-C causes the program to terminate > immediately? No, the line I referred to was extually the line with the signal() in it.. > This can be done using a simple call to kdhit(), no? > Why do you need to > get involved with yet another interrupt and signal? > I think you have > enough interrupts and signals in that program even > without Ctrl-C ;-) And how do I need to implement this to exit my program? Can I let kdhit (or is it kbhit?) exit the program on a CTRL-C?? __________________________________________________ Do You Yahoo!? Send FREE video emails in Yahoo! Mail! http://promo.yahoo.com/videomail/