Mail Archives: djgpp/1994/05/16/19:17:06
> 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.
V2.0 has signals working, although lots of other stuff doesn't yet.
> 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 :-).
If you call _go32_want_ctrl_break(), you can *poll* for ^C (see
samples/dpmi/ctrlbrk.c). You can't do much in an interrupt handler or
real-mode callback anyway, so polling is about it for now.
- Raw text -