delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/16/00:14:59

To: djgpp <djgpp AT sun DOT soe DOT clarkson DOT edu>
Subject: Trapping Ctrl-C
Reply-To: Steve Caine <shc AT netcom DOT com>
Date: Sun, 15 May 94 20:53:12 -0700
From: Steve Caine <shc AT netcom DOT com>

I installed djgpp this weekend & have been happily porting applications
with very few problems.  Some of these apps, however, need a way to trap
ctrl-c so they can clean up before exit.  Go32 seems to catch this, itself,
and bails with a comment.  Under Unix & under other Dos compilers, I've
just used signal() to catch SIGINT.

I've looked for a faq with an answer to this but can't find one.  Any ideas?
Or if this is something waiting to be worked on, any pointers on where to
start?  I have lots of Unix experience but no idea how Dos extenders work
(& I'd rather learn as little as possible to get the job done :-).

Thanks,

Steve / shc AT netcom DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019