@@ -318,7 +318,7 @@ my_clear_env(void)
318
318
}
319
319
320
320
/**
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
322
322
*/
323
323
static char * *
324
324
_child_build_env (struct child_s * sd )
@@ -332,7 +332,7 @@ _child_build_env(struct child_s *sd)
332
332
333
333
new_env = calloc (1 + g_slist_length (sd -> env ), sizeof (char * ));
334
334
335
- /* Run the configured environement */
335
+ /* Run the configured environment */
336
336
for (i = 0 , l = sd -> env ; l && l -> next ;l = l -> next -> next ) {
337
337
k = l -> data ;
338
338
v = l -> next -> data ;
@@ -409,13 +409,13 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
409
409
410
410
switch (sd -> pid ) {
411
411
412
- case -1 : /*error*/
412
+ case -1 : /* error */
413
413
errsav = errno ;
414
414
g_strfreev (args );
415
415
errno = errsav ;
416
416
return -1 ;
417
417
418
- case 0 : /*child*/
418
+ case 0 : /* child */
419
419
setsid ();
420
420
sd -> pid = getpid ();
421
421
if (supervisor_cb_postfork != NULL )
@@ -432,9 +432,9 @@ _child_start(struct child_s *sd, void *udata, supervisor_cb_f cb)
432
432
433
433
_child_exec (sd , argc , args );
434
434
exit (-1 );
435
- return 0 ;/* makes everybody happy*/
435
+ return 0 ; /* makes everybody happy */
436
436
437
- default : /*father*/
437
+ default : /* father */
438
438
439
439
INFO ("Starting service [%s] with pid %i" , sd -> key , sd -> pid );
440
440
@@ -867,7 +867,7 @@ supervisor_children_enable(const char *key, gboolean enable)
867
867
_child_set_flag (sd , MASK_BROKEN , FALSE);
868
868
869
869
/* 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'
871
871
* or 'exit' value for their 'on_die' parameter */
872
872
sd -> last_start_attempt = 0 ;
873
873
}
0 commit comments