[project @ 2005-04-25 14:22:29 by simonmar]
authorsimonmar <unknown>
Mon, 25 Apr 2005 14:22:29 +0000 (14:22 +0000)
committersimonmar <unknown>
Mon, 25 Apr 2005 14:22:29 +0000 (14:22 +0000)
interruptStgRts: call threadRunnable().  This might not work properly
from a signal handler, but it's all we can do (and seems to do
something reasonable on Linux).

ghc/rts/Schedule.c

index d1cdcfc..ee69d03 100644 (file)
@@ -3220,6 +3220,7 @@ interruptStgRts(void)
 {
     interrupted    = 1;
     context_switch = 1;
+    threadRunnable();
 }
 
 /* -----------------------------------------------------------------------------