|
Re: Signal inconsistency between GHC and GHCi: msg#00159lang.haskell.glasgow.bugs
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> |
|---|---|---|
| Previous by Date: | Signal inconsistency between GHC and GHCi, Sven Panne |
|---|---|
| Next by Date: | Re: Space leak, Christian Maeder |
| Previous by Thread: | Signal inconsistency between GHC and GHCi, Sven Panne |
| Next by Thread: | Re[2]: Signal inconsistency between GHC and GHCi, Bulat Ziganshin |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |