From 2ba31eb953d18bb818a87caddcbca80bc8a1d37d Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 24 May 2019 13:51:39 +0300 Subject: Don't remove finished startup components. Just mark them with status_finished. * src/ctl.c (pies_comp_mode_str): Add pies_comp_startup and pies_comp_shutdown. * src/piesctl.c (mode_trans): Likewise. * src/progman.c (progman_startup_phase): Test the status of pies_comp_startup components. (progman_waiting_p): Test status instead of pid>0 to select running components. (progman_cleanup): Set status of the finished startup component to status_finished, instead of removing it. * src/comp.c (loaded): Remove unused variable. (component_config_commit): Remove special handling for pies_comp_startup. --- src/ctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/ctl.c') diff --git a/src/ctl.c b/src/ctl.c index a78cdbf..d9a8998 100644 --- a/src/ctl.c +++ b/src/ctl.c @@ -1453,7 +1453,9 @@ static char * const pies_comp_mode_str[] = { [pies_comp_exec] = "exec", [pies_comp_accept] = "accept", [pies_comp_inetd] = "inetd", - [pies_comp_pass_fd] = "pass_fd", + [pies_comp_pass_fd] = "pass_fd", + [pies_comp_startup] = "startup", + [pies_comp_shutdown] = "shutdown", [pies_comp_wait] = "wait", [pies_comp_once] = "once", [pies_comp_boot] = "boot", -- cgit v1.2.1