[Haskell] Re: rawSystem unpredictable with signals

Florian Weimer fw at deneb.enyo.de
Sun Jul 9 05:53:18 EDT 2006


* John Goerzen:

>     where childaction oldint oldquit oldset =
>               do restoresignals oldint oldquit oldset
>                  executeFile program True args Nothing
>           restoresignals oldint oldquit oldset =
>               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?


More information about the Haskell mailing list