develooper Front page | perl.perl5.porters | Postings from March 2006

[PATCH] win32_async_check must *always* check for pending signals

Thread Next
From:
Jan Dubois
Date:
March 17, 2006 12:23
Subject:
[PATCH] win32_async_check must *always* check for pending signals
Message ID:
00d401c64a00$96af8ae0$2217a8c0@candy
It seems there is another bug in win32_async_check() similar to the issue
patched by [27527]: We must always check for pending signals even if we
don't have a message window.

Cheers,
-Jan

Index: win32/win32.c
--- win32/win32.c.~1~	Fri Mar 17 12:15:03 2006
+++ win32/win32.c	Fri Mar 17 12:15:03 2006
@@ -1918,6 +1918,8 @@
          * is generating messages before the process terminated.
          */
         PeekMessage(&msg, NULL, 0, 0, PM_NOREMOVE|PM_NOYIELD);
+        if (PL_sig_pending)
+            despatch_signals();
         return 1;
     }
 
End of Patch.



Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About