Author: mladen.turk(a)jboss.com
Date: 2007-10-17 09:49:36 -0400 (Wed, 17 Oct 2007)
New Revision: 1120
Modified:
trunk/sight/native/os/windows/scm.c
Log:
Bail out from the loop if interrupted
Modified: trunk/sight/native/os/windows/scm.c
===================================================================
--- trunk/sight/native/os/windows/scm.c 2007-10-17 13:46:31 UTC (rev 1119)
+++ trunk/sight/native/os/windows/scm.c 2007-10-17 13:49:36 UTC (rev 1120)
@@ -142,6 +142,11 @@
dwServiceState = SERVICE_INACTIVE;
SIGHT_LOCAL_TRY(no) {
do {
+ if (SIGHT_LOCAL_IRQ(no)) {
+ ea = NULL;
+ SIGHT_LOCAL_BRK(no);
+ goto cleanup;
+ }
rt = EnumServicesStatusExA(no->native,
SC_ENUM_PROCESS_INFO,
dwServiceType,