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/prog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/prog.h') diff --git a/src/prog.h b/src/prog.h index 9a3960f..04cf3d0 100644 --- a/src/prog.h +++ b/src/prog.h @@ -29,7 +29,7 @@ enum prog_status status_sleeping, /* Component is sleeping. An attempt to start it will be made at prog->v.p.timestamp + SLEEPTIME */ status_stopping, /* Component is being stopped */ - status_finished, /* A "once" component has finished */ + status_finished, /* A "once" or "startup" component has finished */ }; struct conn_class -- cgit v1.2.1