Skip to content

Commit 77f3d2e

Browse files
committed
Trivia: fix typos & whitespace
1 parent 0a441ab commit 77f3d2e

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
@@ -313,7 +313,7 @@ my_clear_env(void)
313313
}
314314

315315
/**
316-
* Must be called after the fork, from the child, just befoe the execve
316+
* Must be called after the fork, from the child, just before the execve
317317
*/
318318
static char **
319319
_child_build_env(struct child_s *sd)
@@ -327,7 +327,7 @@ _child_build_env(struct child_s *sd)
327327

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

330-
/* Run the configured environement */
330+
/* Run the configured environment */
331331
for (i=0, l=sd->env; l && l->next ;l=l->next->next) {
332332
k = l->data;
333333
v = l->next->data;
@@ -403,13 +403,13 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
403403

404404
switch (sd->pid) {
405405

406-
case -1: /*error*/
406+
case -1: /* error */
407407
errsav = errno;
408408
g_strfreev(args);
409409
errno = errsav;
410410
return -1;
411411

412-
case 0: /*child*/
412+
case 0: /* child */
413413
setsid();
414414
sd->pid = getpid();
415415
if (supervisor_cb_postfork != NULL)
@@ -426,9 +426,9 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
426426

427427
_child_exec(sd, argc, args);
428428
exit(-1);
429-
return 0;/*makes everybody happy*/
429+
return 0; /* makes everybody happy */
430430

431-
default: /*father*/
431+
default: /* father */
432432

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

@@ -861,7 +861,7 @@ supervisor_children_enable(const char *key, gboolean enable)
861861
_child_set_flag(sd, MASK_BROKEN, FALSE);
862862

863863
/* We reset the 'last_start_attempt' field. This is necessary
864-
* to explicitely restart services confiured with the 'cry'
864+
* to explicitely restart services configured with the 'cry'
865865
* or 'exit' value for their 'on_die' parameter */
866866
sd->last_start_attempt = 0;
867867
}

0 commit comments

Comments
 (0)