[commit: unix] ghc-7.6: Use pthread_kill on OS X too (ef1604f)

Ian Lynagh igloo at earth.li
Fri Jan 18 00:20:34 CET 2013


Repository : ssh://darcs.haskell.org//srv/darcs/packages/unix

On branch  : ghc-7.6

http://hackage.haskell.org/trac/ghc/changeset/ef1604f25607d237ba81a70bc7ec3db7ebb5c2da

>---------------------------------------------------------------

commit ef1604f25607d237ba81a70bc7ec3db7ebb5c2da
Author: Ian Lynagh <ian at well-typed.com>
Date:   Thu Jan 17 19:21:24 2013 +0000

    Use pthread_kill on OS X too
    
    Fixes signals004(threaded1,threaded2) on OS X 32.

>---------------------------------------------------------------

 System/Posix/Signals.hsc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/System/Posix/Signals.hsc b/System/Posix/Signals.hsc
index ec43366..87b9126 100644
--- a/System/Posix/Signals.hsc
+++ b/System/Posix/Signals.hsc
@@ -299,7 +299,7 @@ foreign import ccall unsafe "killpg"
 raiseSignal :: Signal -> IO ()
 raiseSignal sig = throwErrnoIfMinus1_ "raiseSignal" (c_raise sig)
 
-#if defined(__GLASGOW_HASKELL__) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS))
+#if defined(__GLASGOW_HASKELL__) && (defined(openbsd_HOST_OS) || defined(freebsd_HOST_OS) || defined(dragonfly_HOST_OS) || defined(netbsd_HOST_OS) || defined(darwin_HOST_OS))
 foreign import ccall unsafe "genericRaise"
   c_raise :: CInt -> IO CInt
 #else





More information about the ghc-commits mailing list