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