[project @ 2006-01-16 16:38:24 by simonmar]
authorsimonmar <unknown>
Mon, 16 Jan 2006 16:38:25 +0000 (16:38 +0000)
committersimonmar <unknown>
Mon, 16 Jan 2006 16:38:25 +0000 (16:38 +0000)
Default signal handlers weren't being installed; amazing that this has
been broken ever since I rearranged the signal handling code.

ghc/includes/RtsConfig.h
ghc/rts/RtsSignals.h
ghc/rts/posix/Select.c

index 31cbf7c..76a0209 100644 (file)
 #define RET_LBL(f) f##_ret
 #endif
 
+/* -----------------------------------------------------------------------------
+   Signals - supported on non-PAR versions of the runtime.  See RtsSignals.h.
+   -------------------------------------------------------------------------- */
+
+#if !defined(PAR)
+#define RTS_USER_SIGNALS 1
+#endif
+
 #endif /* RTSCONFIG_H */
index 5f7c99b..eafeeaa 100644 (file)
 
 #if !defined(PAR) && !defined(mingw32_HOST_OS)
 
-#define RTS_USER_SIGNALS 1
 #include "posix/Signals.h"
 
 #elif defined(mingw32_HOST_OS)
 
-#define RTS_USER_SIGNALS 1
 #include "win32/ConsoleHandler.h"
 
 #else /* PAR */
index 0f7a6df..effc7c4 100644 (file)
@@ -208,7 +208,7 @@ awaitEvent(rtsBool wait)
           */
 #if defined(RTS_USER_SIGNALS)
          if (signals_pending()) {
-             startSignalHandlers();
+             startSignalHandlers(&MainCapability);
              return; /* still hold the lock */
          }
 #endif