signal handling weirdness

2005-04-17 Thread Volker Wysk
Hello. I'm trying to install a handler for the TERM signal: import System.Posix.Signals import System.Posix.Unistd import Monad main = do installHandler sigTERM handler Nothing sequence (repeat (putStrLn bla sleep 5)) return () handler = Catch (putStrLn caught SIGTERM) --

Re: signal handling weirdness

2005-04-17 Thread Lemmih
On 4/17/05, Volker Wysk [EMAIL PROTECTED] wrote: Hello. I'm trying to install a handler for the TERM signal: import System.Posix.Signals import System.Posix.Unistd import Monad main = do installHandler sigTERM handler Nothing sequence (repeat (putStrLn bla sleep 5))