Skip to content

Commit

Permalink
Ensure we clear the 'starting' flag when cleaning up an svc_t
Browse files Browse the repository at this point in the history
Prevent crashing/restarting tasks from winding up in the wrong state.

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
  • Loading branch information
troglobit committed Mar 27, 2022
1 parent e7b18fe commit ba77e4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ static void service_cleanup(svc_t *svc)
utmp_set_dead(svc->pid); /* Set DEAD_PROCESS UTMP entry */

svc->oldpid = svc->pid;
svc->start_time = svc->pid = 0;
svc->starting = svc->start_time = svc->pid = 0;
}

/**
Expand Down

0 comments on commit ba77e4f

Please sign in to comment.