mirror of https://github.com/winsw/winsw
commit
f4c5f825bb
|
@ -367,7 +367,6 @@ namespace winsw
|
|||
Log.Debug("WaitForProcessToExit " + _process.Id + "+" + stopProcess.Id);
|
||||
WaitForProcessToExit(_process);
|
||||
WaitForProcessToExit(stopProcess);
|
||||
SignalShutdownComplete();
|
||||
}
|
||||
|
||||
// Stop extensions
|
||||
|
@ -429,12 +428,7 @@ namespace winsw
|
|||
effectiveWaitHint = (int)_descriptor.WaitHint.TotalMilliseconds;
|
||||
}
|
||||
|
||||
IntPtr handle = ServiceHandle;
|
||||
_wrapperServiceStatus.checkPoint++;
|
||||
_wrapperServiceStatus.waitHint = effectiveWaitHint;
|
||||
// WriteEvent("SignalShutdownPending " + wrapperServiceStatus.checkPoint + ":" + wrapperServiceStatus.waitHint);
|
||||
_wrapperServiceStatus.currentState = (int)State.SERVICE_STOP_PENDING;
|
||||
Advapi32.SetServiceStatus(handle, _wrapperServiceStatus);
|
||||
RequestAdditionalTime(effectiveWaitHint);
|
||||
}
|
||||
|
||||
private void SignalShutdownComplete()
|
||||
|
|
Loading…
Reference in New Issue