jfclere commented on code in PR #238:
URL: https://github.com/apache/commons-daemon/pull/238#discussion_r2085082671
##########
src/native/windows/apps/prunsrv/prunsrv.c:
##########
@@ -1223,16 +1261,26 @@ static DWORD WINAPI serviceStop(LPVOID lpParameter)
BOOL wait_to_die = FALSE;
DWORD timeout = SO_STOPTIMEOUT * 1000;
DWORD dwCtrlType = (DWORD)((BYTE *)lpParameter - (BYTE *)0);
+ DWORD waited = 0;
apxLogWrite(APXLOG_MARK_INFO "Stopping service...");
+ stopStarted = GetTickCount();
+ if (dwCtrlType == SERVICE_CONTROL_SHUTDOWN)
+ timeout = MIN(timeout, apxGetMaxServiceTimeout(gPool));
+ if (!timeout) {
+ /* Use 1 minutes default */
Review Comment:
fixed.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]