Proposal: new signal-handling API

Brandon S. Allbery KF8NH allbery at
Sat Jul 19 15:18:01 EDT 2008

On 2008 Jul 19, at 13:07, Duncan Coutts wrote:

> In particular the case of "I need to do this cleanup before the  
> program
> terminates" is much more general than Posix and signals. For example a
> library installing a handler for SIGINT is the wrong thing to do (and
> not just because it's not very modular) but because the very decision
> about whether SIGINT is going to kill the process or not is not for  
> the
> library to decide. What it needs is to be thrown an exception when the
> process does decide that it's going to terminate.

...and here you see why I made my proposal about mapping signals to  

brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery at
system administrator [openafs,heimdal,too many hats] allbery at
electrical and computer engineering, carnegie mellon university    KF8NH

More information about the Libraries mailing list