From 77f3d2ec6d3e81d9b16fcbd3138b7221c5cecb96 Mon Sep 17 00:00:00 2001 From: Vincent Legoll Date: Wed, 30 May 2018 14:29:09 +0200 Subject: [PATCH] Trivia: fix typos & whitespace --- lib/children.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/children.c b/lib/children.c index b07ac2e..5c0af13 100644 --- a/lib/children.c +++ b/lib/children.c @@ -313,7 +313,7 @@ my_clear_env(void) } /** - * Must be called after the fork, from the child, just befoe the execve + * Must be called after the fork, from the child, just before the execve */ static char ** _child_build_env(struct child_s *sd) @@ -327,7 +327,7 @@ _child_build_env(struct child_s *sd) new_env = calloc(1 + g_slist_length(sd->env), sizeof(char*)); - /* Run the configured environement */ + /* Run the configured environment */ for (i=0, l=sd->env; l && l->next ;l=l->next->next) { k = l->data; v = l->next->data; @@ -403,13 +403,13 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb) switch (sd->pid) { - case -1: /*error*/ + case -1: /* error */ errsav = errno; g_strfreev(args); errno = errsav; return -1; - case 0: /*child*/ + case 0: /* child */ setsid(); sd->pid = getpid(); if (supervisor_cb_postfork != NULL) @@ -426,9 +426,9 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb) _child_exec(sd, argc, args); exit(-1); - return 0;/*makes everybody happy*/ + return 0; /* makes everybody happy */ - default: /*father*/ + default: /* father */ INFO("Starting service [%s] with pid %i", sd->key, sd->pid); @@ -861,7 +861,7 @@ supervisor_children_enable(const char *key, gboolean enable) _child_set_flag(sd, MASK_BROKEN, FALSE); /* We reset the 'last_start_attempt' field. This is necessary - * to explicitely restart services confiured with the 'cry' + * to explicitely restart services configured with the 'cry' * or 'exit' value for their 'on_die' parameter */ sd->last_start_attempt = 0; }