Mail Archives: djgpp/1996/05/22/12:14:16
On Mon, 20 May 1996, Charles Sandmann wrote:
> > __djgpp_set_ctrl_c(0);
> > function doesn't seem to be documented anywhere: does anyone know why
> > not? Is there some reason why I shouldn't be using it?
>
> It's an internal function which I didn't expect to be called by the users.
> In the UNIX world to supress CTRL-C interrupts you would SIG_IGN SIGINT,
The problem is that setting SIGINT to SIG_IGN also suppresses signals
generated by Ctrl-Break. Also, if you switch stdin to binary mode, Ctrl-C
stops generating SIGINT even if you don't want to ignore SIGINT. So
`__djgpp_set_ctrl_c' is most useful in re-enabling SIGINT after switching
stdin to binary, or selectively disabling only Ctrl-C but not Ctrl-Break.
Which is why it *will* be documented in the next release of DJGPP.
- Raw text -