Mail Archives: djgpp-workers/1998/01/19/20:29:40
On Fri, 16 Jan 1998, Markus F.X.J. Oberhumer wrote:
> I'm also more than a bit sceptic about the SIGQUIT extension.
> Many programs (like Allegro) currently install SIGQUIT handlers
> just to clean up at a possible crash.
I don't understand this comment. If a program installs a handler for
SIGQUIT, it should not have any surprises with this change, since
pressing the QUIT key will just call that handler. So what does
bother you, exactly?
> I strongly vote for an explicit `__djgpp_enable_sigquit()'.
I already said here that this is how it will be done. By default,
SIGQUIT will be ignored (i.e., its SIG_DFL handler will discard the
signal and return). Only programs which catch SIGQUIT by installing
their own handlers will get the signal. A handler will be provided
that can be installed to generate a traceback and abort, as things are
set up on Unix, but a program will need to actually install that
handler by calling `signal' to have SIGQUIT abort it, like this:
signal (SIGQUIT, __djgpp_traceback_exit);
> [ Is SIGQUIT really that important ?
It is important when you need it.
> though running Linux for more than 3 years I even don't know where
> this key is located on my German keyboard ]
With the above setup, you can continue to not know about it in DJGPP
as well.
- Raw text -