logo       

Re: Signal inconsistency between GHC and GHCi: msg#00159

lang.haskell.glasgow.bugs

Subject: Re: Signal inconsistency between GHC and GHCi

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.


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise