When BREAK <task> doesnt
16-Nov-91 13:22:19
Sb: #16162-When BREAK <task> doesnt
Fm: Steve Tibbett 72627,1325
To: Russ Witt 76625,20
As an aside (not really a comment to your message), it would be very nice
if people would start writing programs that responded to the
SIGBREAKF_CTRL_C signal.
For instance, all of the programs I've written lately respond to a break
signal by quitting, no matter what they're doing (unless they are crashed,
which is what you wanted). If this means closing 8 windows and aborting a
couple of documents, well, that's what the user asked for, so it shuts
things down and leaves.
It's not a difficult thing to do – just do checks like
if (SetSignal(0,0)&SIGBREAKF_CTRL_C)
exit(0);
and have an atexit() function do the cleaning up of whatever was opened.
Enough of the soapbox.. 😎