Author: mladen.turk(a)jboss.com
Date: 2008-03-11 11:49:40 -0400 (Tue, 11 Mar 2008)
New Revision: 1433
Modified:
trunk/utils/windows/native/service/jbosssvc/jboss.c
Log:
Always handle LOGOFF event
Modified: trunk/utils/windows/native/service/jbosssvc/jboss.c
===================================================================
--- trunk/utils/windows/native/service/jbosssvc/jboss.c 2008-03-06 20:02:14 UTC (rev
1432)
+++ trunk/utils/windows/native/service/jbosssvc/jboss.c 2008-03-11 15:49:40 UTC (rev
1433)
@@ -742,12 +742,19 @@
}
else
return FALSE;
+ break;
case CTRL_C_EVENT:
case CTRL_CLOSE_EVENT:
case CTRL_SHUTDOWN_EVENT:
ServiceStop();
return TRUE;
break;
+ case CTRL_LOGOFF_EVENT:
+ if (_service_mode == mode_run) {
+ ServiceStop();
+ }
+ return TRUE;
+ break;
}
return FALSE;
Show replies by date