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" >> s
Bugs item #1177838, was opened at 2005-04-06 17:18
Message generated for change (Comment added) made by spanne
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=1177838&group_id=8032
Category: libraries (other)
Group: None
>Status: Closed
>Resolution: Fixed
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")
--