Treating POSIX signals as exceptions?

David Roundy droundy at abridgegame.org
Mon Nov 17 06:59:41 EST 2003


On Mon, Nov 17, 2003 at 10:46:23AM -0000, Simon Marlow wrote:
> > I guess the problem is that as far as I can tell, there is no way to
> > implement a "correct" bracket along with the existing POSIX signal
> > implementation, since there's no way to find out what the current
> > handler is, which means bracket can't install its own handler without
> > messing up the current handler.
> 
> Hmm, I don't think I understand this.  bracket is just fine as it is;
> it's just the signal handler which needs to raise an exception, right?

My point is that if you wanted to implement a signal-safe bracket, there is
no way to do so, since the user may have implemented a signal handler
already, and you can't find out what it is.
-- 
David Roundy
http://www.abridgegame.org


More information about the Libraries mailing list