Control.Exception.unblock wasn't unblocking exceptions
authorSimon Marlow <simonmar@microsoft.com>
Thu, 10 Aug 2006 13:23:07 +0000 (13:23 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 10 Aug 2006 13:23:07 +0000 (13:23 +0000)
rts/Exception.cmm

index 8ca397b..0c1b664 100644 (file)
@@ -123,6 +123,9 @@ unblockAsyncExceptionszh_fast
        foreign "C" awakenBlockedExceptionQueue(MyCapability() "ptr", 
                                                CurrentTSO "ptr") [R1];
 
+       StgTSO_flags(CurrentTSO) = StgTSO_flags(CurrentTSO) & 
+          ~(TSO_BLOCKEX::I32|TSO_INTERRUPTIBLE::I32);
+
        /* avoid growing the stack unnecessarily */
        if (Sp(0) == stg_unblockAsyncExceptionszh_ret_info) {
            Sp_adj(1);