RE: installHandler, sleep, and interrupts.

2001-10-31 Thread Simon Marlow
I later ran into another problem that may or may not be related with the first. This is the program I am running: module Main where import Posix main = do installHandler sigCONT (Catch (putStrLn - resumed -)) Nothing forever $ do c -

RE: installHandler, sleep, and interrupts.

2001-10-30 Thread Simon Marlow
When interrupting this program, the signal handler does not get called: module Main where import Posix main = do installHandler 2 (Catch (putStrLn Hello, world!)) Nothing sleep 600 -- putStr Try using Concurrent.threadDelay instead of

RE: installHandler, sleep, and interrupts.

2001-10-30 Thread Anders Lau Olsen
I later ran into another problem that may or may not be related with the first. This is the program I am running: module Main where import Posix main = do installHandler sigCONT (Catch (putStrLn - resumed -)) Nothing forever $ do c - getChar

installHandler, sleep, and interrupts.

2001-10-29 Thread Anders Lau Olsen
When interrupting this program, the signal handler does not get called: module Main where import Posix main = do installHandler 2 (Catch (putStrLn Hello, world!)) Nothing sleep 600 -- putStr Curiously, if the last line is uncommented, the program works as