mirror of
https://github.com/troglobit/finit.git
synced 2026-10-23 11:44:37 +00:00
1 parent
a40858f162
commit
4790344fbe
2 files changed
+6
-4
No files matched your search
+3
-4
@@ -990,11 +990,10 @@ static void svc_set_state(svc_t *svc, svc_state_t new)
|
||||
|
||||
*state = new;
|
||||
|
||||
/* if the PID isn't collected within 3s, kill it! */
|
||||
if ((*state == SVC_STOPPING_STATE) &&
|
||||
!svc_is_inetd(svc)) {
|
||||
/* if PID isn't collected within SVC_TERM_TIMEOUT msec, kill it! */
|
||||
if ((*state == SVC_STOPPING_STATE) && !svc_is_inetd(svc)) {
|
||||
service_timeout_cancel(svc);
|
||||
service_timeout_after(svc, 3000, service_kill);
|
||||
service_timeout_after(svc, SVC_TERM_TIMEOUT, service_kill);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user