Signal inconsistency between GHC and GHCi
Sven Panne
Sven.Panne at aedion.de
Wed Dec 28 07:28:07 EST 2005
Am Mittwoch, 28. Dezember 2005 13:20 schrieb Sven Panne:
> [ usleep/nanosleep trouble deleted... ]
I forgot something in my last email:
------ from fptools/libraries/unix/System/Posix/Unistd.hs -----------
usleep :: Int -> IO ()
usleep 0 = return ()
#ifdef USLEEP_RETURNS_VOID
usleep usecs = c_usleep (fromIntegral usecs)
#else
usleep usecs =
throwErrnoIfMinus1Retry_ "usleep" (c_usleep (fromIntegral usecs))
#endif
-----------------------------------------------------------------------
Simply re-sleeping after an EINTR with the same amount of microseconds is not
the right thing here, we should better use the time left.
Cheers,
S.
More information about the Glasgow-haskell-bugs
mailing list