@@ -313,7 +313,7 @@ my_clear_env(void)
313
313
}
314
314
315
315
/**
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
317
317
*/
318
318
static char * *
319
319
_child_build_env (struct child_s * sd )
@@ -327,7 +327,7 @@ _child_build_env(struct child_s *sd)
327
327
328
328
new_env = calloc (1 + g_slist_length (sd -> env ), sizeof (char * ));
329
329
330
- /* Run the configured environement */
330
+ /* Run the configured environment */
331
331
for (i = 0 , l = sd -> env ; l && l -> next ;l = l -> next -> next ) {
332
332
k = l -> data ;
333
333
v = l -> next -> data ;
@@ -403,13 +403,13 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
403
403
404
404
switch (sd -> pid ) {
405
405
406
- case -1 : /*error*/
406
+ case -1 : /* error */
407
407
errsav = errno ;
408
408
g_strfreev (args );
409
409
errno = errsav ;
410
410
return -1 ;
411
411
412
- case 0 : /*child*/
412
+ case 0 : /* child */
413
413
setsid ();
414
414
sd -> pid = getpid ();
415
415
if (supervisor_cb_postfork != NULL )
@@ -426,9 +426,9 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
426
426
427
427
_child_exec (sd , argc , args );
428
428
exit (-1 );
429
- return 0 ;/* makes everybody happy*/
429
+ return 0 ; /* makes everybody happy */
430
430
431
- default : /*father*/
431
+ default : /* father */
432
432
433
433
INFO ("Starting service [%s] with pid %i" , sd -> key , sd -> pid );
434
434
@@ -861,7 +861,7 @@ supervisor_children_enable(const char *key, gboolean enable)
861
861
_child_set_flag (sd , MASK_BROKEN , FALSE);
862
862
863
863
/* 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'
865
865
* or 'exit' value for their 'on_die' parameter */
866
866
sd -> last_start_attempt = 0 ;
867
867
}
0 commit comments