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