[Haskell-cafe] Why does sleep not work?

Corey O'Connor coreyoconnor at gmail.com
Tue Feb 10 18:41:28 EST 2009


2009/2/10 George Pollard <porges at porg.es>:
>> 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?

Cheers,
-Corey O'Connor


More information about the Haskell-Cafe mailing list