@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
38
38
time_t supervisor_default_delay_KILL = SUPERVISOR_DEFAULT_TIMEOUT_KILL ;
39
39
40
40
static time_t _monotonic_seconds (void ) {
41
- return g_get_monotonic_time () / G_TIME_SPAN_SECOND ;
41
+ return g_get_monotonic_time () / G_TIME_SPAN_SECOND ;
42
42
}
43
43
44
44
/**
@@ -462,8 +462,8 @@ _child_stop(struct child_s *sd)
462
462
if (sd -> first_kill_attempt == 0 )
463
463
sd -> first_kill_attempt = now ;
464
464
if (sd -> delay_before_KILL > 0
465
- && sd -> first_kill_attempt > 0
466
- && (now - sd -> first_kill_attempt ) > sd -> delay_before_KILL ) {
465
+ && sd -> first_kill_attempt > 0
466
+ && (now - sd -> first_kill_attempt ) > sd -> delay_before_KILL ) {
467
467
DEBUG ("Service [%s] did not exit after 60s, sending SIGKILL" , sd -> key );
468
468
kill (sd -> pid , SIGKILL );
469
469
} else {
@@ -767,7 +767,7 @@ supervisor_children_register(const gchar *key, const gchar *cmd)
767
767
}
768
768
769
769
g_strlcpy (sd -> key , key , sizeof (sd -> key )- 1 );
770
- sd -> delay_before_KILL = supervisor_default_delay_KILL ;
770
+ sd -> delay_before_KILL = supervisor_default_delay_KILL ;
771
771
sd -> flags = MASK_STARTED |MASK_RESPAWN |MASK_DELAYED ;
772
772
sd -> working_directory = g_get_current_dir ();
773
773
sd -> command = g_strdup (cmd );
0 commit comments