Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!uunet!flood!tom From: tom@flood.com (Tom Chatt) Newsgroups: comp.unix.internals Subject: Re: sigblock,sigmask,sigsetmask ... for SYS V? Message-ID: <1991Jun25.165700.17625@flood.com> Date: 25 Jun 91 16:57:00 GMT Article-I.D.: flood.1991Jun25.165700.17625 References: <1991Jun21.225851.24990@uokmax.ecn.uoknor.edu> Sender: root@flood.com (Operator) Organization: The Flood Group, Inc. Lawndale, Ca. Lines: 17 srp@babar.mmwb.ucsf.edu (Scott R. Presnell%Cohen) writes: > hpn@regentdb.osrhe.uoknor.edu (Huy Nguyen / (405) 721-3798) writes: > > > Does anyone know of a library package, hacks, etc to emulate these BSD > > signal routines for SYS V? > > I've used the following in the past as a quick hack... > [ code snippets emulating sigblock, sigsetmask enclosed ] Yes, but the important question is: can you emulate sigpause? The sigpause(2) call, which *atomically* waits for signals on a provided signal mask, is essential to properly avoid the critical races otherwise inherent in managing signals. -- Tom Chatt \ Don't take offense, take action. Internet: tom@flood.com \ Speak up. When we remain silent, UUCP: ...!uunet!flood!tom / \ we oppress ourselves.