Path: utzoo!attcan!uunet!virtech!cpcahil From: cpcahil@virtech.uucp (Conor P. Cahill) Newsgroups: comp.lang.c Subject: Re: Catching Signals in 'C' Message-ID: <1990Sep28.232736.24296@virtech.uucp> Date: 28 Sep 90 23:27:36 GMT References: <1990Sep28.120043.17628@NCoast.ORG> <2901@idunno.Princeton.EDU> Reply-To: cpcahil@virtech.UUCP (Conor P. Cahill) Organization: Virtual Technologies Inc., Sterling VA Lines: 17 In article <2901@idunno.Princeton.EDU> pfalstad@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