[Haskell] Re: rawSystem unpredictable with signals
John Goerzen
jgoerzen at complete.org
Sun Jul 9 09:52:18 EDT 2006
On Sun, Jul 09, 2006 at 11:53:18AM +0200, Florian Weimer wrote:
> * John Goerzen:
>
> > do installHandler sigINT oldint Nothing
> > installHandler sigQUIT oldquit Nothing
> > setSignalMask oldset
>
> Does this work reliably with threading? Signal handlers are a
> process-global resource. Or is installHandler performing some magic
> to make signal handlers thread-specific?
I haven't tested it with threading yet. From looking at the source
for the existing rawSystme, I suspect it will work exactly as well (or
poorly) as that one.
More information about the Haskell
mailing list