Loading init/signal_handler.c +4 −3 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,7 @@ static int wait_for_one_process(int block) NOTICE("process '%s', pid %d exited\n", svc->name, pid); NOTICE("process '%s', pid %d exited\n", svc->name, pid); if (!(svc->flags & SVC_ONESHOT)) { if (!(svc->flags & SVC_ONESHOT) || (svc->flags & SVC_RESTART)) { kill(-pid, SIGKILL); kill(-pid, SIGKILL); NOTICE("process '%s' killing any children in process group\n", svc->name); NOTICE("process '%s' killing any children in process group\n", svc->name); } } Loading @@ -78,8 +78,9 @@ static int wait_for_one_process(int block) svc->pid = 0; svc->pid = 0; svc->flags &= (~SVC_RUNNING); svc->flags &= (~SVC_RUNNING); /* oneshot processes go into the disabled state on exit */ /* oneshot processes go into the disabled state on exit, if (svc->flags & SVC_ONESHOT) { * except when manually restarted. */ if ((svc->flags & SVC_ONESHOT) && !(svc->flags & SVC_RESTART)) { svc->flags |= SVC_DISABLED; svc->flags |= SVC_DISABLED; } } Loading Loading
init/signal_handler.c +4 −3 Original line number Original line Diff line number Diff line Loading @@ -63,7 +63,7 @@ static int wait_for_one_process(int block) NOTICE("process '%s', pid %d exited\n", svc->name, pid); NOTICE("process '%s', pid %d exited\n", svc->name, pid); if (!(svc->flags & SVC_ONESHOT)) { if (!(svc->flags & SVC_ONESHOT) || (svc->flags & SVC_RESTART)) { kill(-pid, SIGKILL); kill(-pid, SIGKILL); NOTICE("process '%s' killing any children in process group\n", svc->name); NOTICE("process '%s' killing any children in process group\n", svc->name); } } Loading @@ -78,8 +78,9 @@ static int wait_for_one_process(int block) svc->pid = 0; svc->pid = 0; svc->flags &= (~SVC_RUNNING); svc->flags &= (~SVC_RUNNING); /* oneshot processes go into the disabled state on exit */ /* oneshot processes go into the disabled state on exit, if (svc->flags & SVC_ONESHOT) { * except when manually restarted. */ if ((svc->flags & SVC_ONESHOT) && !(svc->flags & SVC_RESTART)) { svc->flags |= SVC_DISABLED; svc->flags |= SVC_DISABLED; } } Loading