[GHC] #7745: sleep interrupted in foreign call with GHC later than 7.2
GHC
cvs-ghc at haskell.org
Fri Mar 8 00:28:13 CET 2013
#7745: sleep interrupted in foreign call with GHC later than 7.2
----------------------------------+-----------------------------------------
Reporter: daniel.is.fischer | Owner:
Type: bug | Status: closed
Priority: normal | Component: Compiler
Version: 7.6.1 | Resolution: invalid
Keywords: | Os: Unknown/Multiple
Architecture: Unknown/Multiple | Failure: None/Unknown
Blockedby: | Blocking:
Related: |
----------------------------------+-----------------------------------------
Changes (by ezyang):
* status: new => closed
* resolution: => invalid
Comment:
Your C code needs to handle SIGVTALRMs:
{{{
nanosleep({2, 0}, {1, 995333267}) = ? ERESTART_RESTARTBLOCK (To be
restarted)
--- SIGVTALRM (Virtual timer expired) @ 0 (0) --
rt_sigreturn(0x1a) = -1 EINTR (Interrupted system
call)
}}}
See also http://hackage.haskell.org/trac/ghc/wiki/Commentary/Rts/Signals
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/7745#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list