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)
--
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))