[project @ 2002-12-05 14:20:55 by stolz]
authorstolz <unknown>
Thu, 5 Dec 2002 14:20:56 +0000 (14:20 +0000)
committerstolz <unknown>
Thu, 5 Dec 2002 14:20:56 +0000 (14:20 +0000)
commit6ff1e84bcef3c4aba42c1b6e90f2eba84c8b02ac
tree67872df983851c7b7f6a08a7bd9ba5d6c4613795
parent1ca2417ee22d6d35c06ff9ac89683004e23e614f
[project @ 2002-12-05 14:20:55 by stolz]
Add SA_RESETHAND (aka SA_ONESHOT) support.
Requested by: John Meacham

> module Main where

> import System.Posix.Signals

> main = do
>   installHandler sigUSR1 (Catch (print "usr1")) Nothing
>   installHandler sigUSR2 (CatchOnce (print "usr2")) Nothing
>   _ <- getLine
>   return ()
ghc/includes/Signals.h
ghc/rts/Signals.c