Skip to content

Commit 6802dac

Browse files
authored
Merge pull request #19 from vincent-legoll/master
Trivia: fix typos & whitespace
2 parents 8b9636e + 77f3d2e commit 6802dac

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/children.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ my_clear_env(void)
318318
}
319319

320320
/**
321-
* Must be called after the fork, from the child, just befoe the execve
321+
* Must be called after the fork, from the child, just before the execve
322322
*/
323323
static char **
324324
_child_build_env(struct child_s *sd)
@@ -332,7 +332,7 @@ _child_build_env(struct child_s *sd)
332332

333333
new_env = calloc(1 + g_slist_length(sd->env), sizeof(char*));
334334

335-
/* Run the configured environement */
335+
/* Run the configured environment */
336336
for (i=0, l=sd->env; l && l->next ;l=l->next->next) {
337337
k = l->data;
338338
v = l->next->data;
@@ -409,13 +409,13 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
409409

410410
switch (sd->pid) {
411411

412-
case -1: /*error*/
412+
case -1: /* error */
413413
errsav = errno;
414414
g_strfreev(args);
415415
errno = errsav;
416416
return -1;
417417

418-
case 0: /*child*/
418+
case 0: /* child */
419419
setsid();
420420
sd->pid = getpid();
421421
if (supervisor_cb_postfork != NULL)
@@ -432,9 +432,9 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
432432

433433
_child_exec(sd, argc, args);
434434
exit(-1);
435-
return 0;/*makes everybody happy*/
435+
return 0; /* makes everybody happy */
436436

437-
default: /*father*/
437+
default: /* father */
438438

439439
INFO("Starting service [%s] with pid %i", sd->key, sd->pid);
440440

@@ -867,7 +867,7 @@ supervisor_children_enable(const char *key, gboolean enable)
867867
_child_set_flag(sd, MASK_BROKEN, FALSE);
868868

869869
/* We reset the 'last_start_attempt' field. This is necessary
870-
* to explicitely restart services confiured with the 'cry'
870+
* to explicitely restart services configured with the 'cry'
871871
* or 'exit' value for their 'on_die' parameter */
872872
sd->last_start_attempt = 0;
873873
}

0 commit comments

Comments
 (0)