#: 12277 S12/OS9/68000 (OSK)
18-Sep-91 07:25:28
Sb: #12275-#Intercepts
Fm: Mark Wuest 74030,332
To: Bob van der Poel 76510,2203 (X)
Bob,
I hope Kim pops in with a more definitive answer, but the most important thing
to remember is the *reason* MW says to make signal handlers very short. There
is really only one - you risk missing signals. eg: You type ctrl-c, and while
your signal handler is out doing something, you type ctrl-c two *more* times.
When your program finishes what it was doing with the first ctrl-c, it will
only get one more signal, missing one of the ctrl-c's you typed.
Programs under OS9 do what you are describing all the time, because the
programmer knows he doesn't care if he misses a signal at that point. The
*important* thing is to be *aware* of how it works. It's not a bug (or a
"feature" ), it's just the way it is. Almost all versions of Unix do the
same thing, BTW.
Good luck!
Mark
There is 1 Reply.
|