Skip to content

Commit df49fc5

Browse files
jfsmigfvennetier
authored andcommitted
lib: Fix odd indentations
Thanks to @fvennetier!
1 parent 2b3675c commit df49fc5

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/children.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
3838
time_t supervisor_default_delay_KILL = SUPERVISOR_DEFAULT_TIMEOUT_KILL;
3939

4040
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;
4242
}
4343

4444
/**
@@ -462,8 +462,8 @@ _child_stop(struct child_s *sd)
462462
if (sd->first_kill_attempt == 0)
463463
sd->first_kill_attempt = now;
464464
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) {
467467
DEBUG("Service [%s] did not exit after 60s, sending SIGKILL", sd->key);
468468
kill(sd->pid, SIGKILL);
469469
} else {
@@ -767,7 +767,7 @@ supervisor_children_register(const gchar *key, const gchar *cmd)
767767
}
768768

769769
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;
771771
sd->flags = MASK_STARTED|MASK_RESPAWN|MASK_DELAYED;
772772
sd->working_directory = g_get_current_dir();
773773
sd->command = g_strdup(cmd);

lib/gridinit-utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ guint supervisor_children_mark_obsolete(void);
102102
Will send SIGKILL until expiration, then SIGTERM. */
103103
guint supervisor_children_kill_disabled(void);
104104

105-
/* starts allt the stopped services in a state proper to be restarted */
105+
/* starts all the stopped services in a state proper to be restarted */
106106
guint supervisor_children_start_enabled(void *udata, supervisor_cb_f cb);
107107

108108
/* Sets the 'enabled' flag on the service */

0 commit comments

Comments
 (0)