When BREAK <task> doesnt
25-Nov-91 10:33:21
Sb: #16893-When BREAK <task> doesnt
Fm: Steve Tibbett 72627,1325
To: John Toebes/SYSOP 70007,3467
Of course the program should clean up when it gets a ^C. I'm not saying
the program should just exit without closing it's windows, freeing it's
resources, etc… My UserEdit program for BBX can open about 8 windows –
and if you BREAK it's process, it will shut them all down and quit.
I've seen programs that just vanish when you hit Ctrl-C – usually programs
that use stdio stuff, but also open windows. That's one of the reasons all
my cleanup code goes into a function that gets called at exit time (via
atexit()).
…Steve