The following code does nothing one sent a -USR1 but "succeeds" (i.e.
fails with "User defined signal 2") on -USR2.
I'd be happy if someone could point me to the important thing I'm
constantly missing.
ghc is The Glorious Glasgow Haskell Compilation System, version 4.07,
last built on Feb., 8th, though the same happens with ghc-4.04 (on
FreeBSD).
Regards,
Volker
module Main (main) where
import IO
import Posix
action = do
putStrLn "Kill!"
return ()
main = do
oldH <- installHandler sigUSR1 (Catch action) Nothing
putStrLn "welcome"
zeile <- getLine
putStrLn (": " ++ zeile)
--
Volker Stolz * [EMAIL PROTECTED] * PGP