Corey O'Connor ha scritto:
2009/2/10 George Pollard <[email protected]>:
import System.Posix
main = do
putStrLn "Waiting for 5 seconds."
blockSignals $ addSignal sigVTALRM emptySignalSet
sleep 5
putStrLn "Done."
Huh! Does the GHC runtime uses this signal? Perhaps for scheduling?
Right.
It is used for scheduling, as far as I understand.
So blocking it is a bad idea (unless you block it in a thread other than
the main thread, IMO).
Cheers,
-Corey O'Connor
Regards Manlio
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe