Catching Signals in 'C'
Conor P. Cahill
cpcahil at virtech.uucp
Sat Sep 29 09:27:36 AEST 1990
In article <2901 at idunno.Princeton.EDU> pfalstad at bow.Princeton.EDU (Paul John Falstad) writes:
>
>The signal handler should reinstall itself before returning.
Actually the signal handler should reinstall itself immediatly (i.e. the first
thing it does) otherwise the receipt during the execution of the handler may
cause grief. Even doing it as the first thing in the handler may not be
fast enough to ensure that another signal does not interrupt the program.
That is why old System V signals should not be used for interprocess
communications unless the rate of signals is guarranteed to be low.
--
Conor P. Cahill (703)430-9247 Virtual Technologies, Inc.,
uunet!virtech!cpcahil 46030 Manekin Plaza, Suite 160
Sterling, VA 22170
More information about the Comp.lang.c
mailing list