Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!yale!cmcl2!stealth.acf.nyu.edu!brnstnd From: brnstnd@stealth.acf.nyu.edu Newsgroups: comp.unix.wizards Subject: What do you want in a signal library? Message-ID: <20926@stealth.acf.nyu.edu> Date: 17 Jan 90 08:59:27 GMT Reply-To: brnstnd@stealth.acf.nyu.edu (Dan Bernstein) Distribution: usa Organization: IR Lines: 12 For amusement I'm writing a BSD library for dealing with signals in The Right Way. Each signal gets a stack of handlers, invoked one at a time when the signal arrives. There are functions for manipulating the stacks, temporarily blocking a signal (but receiving it when the block is released), turning off the special handling, etc. What else do people want? Should there be special routines dealing with particular signals: CHLD, time signals (ALRM, VTALRM, PROF), and so on? On the same subject: How does one correctly code ANSI C raise() so as to prevent race conditions? I want to make sure I'm not messing this up. ---Dan