Mail Archives: djgpp/1996/05/22/13:20:34
> 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.
Yes, if you want additional flexibility I can see why you might want to
do this. I didn't burn the bridges when I designed it. One thing we
discussed at the time was making these be separate signals, but then decided
to just allow the binary interaction for CTRL-C and the go32_want_ctrl_brk
stuff for ctrl-break.
> Which is why it *will* be documented in the next release of DJGPP.
I don't disagree it should be documented now that it's clear that it's
useful and being used. At the time I wrote it, I wasn't clear on if it had
any use, or if the interface was appropriate (there is another way to do the
exact same thing setting a bit in a global variable, BTW).
I don't want to fess up to the other things in the libc I didn't document ;-(
- Raw text -