diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 13:51:39 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2019-05-24 14:08:17 +0300 |
commit | 2ba31eb953d18bb818a87caddcbca80bc8a1d37d (patch) | |
tree | 402aa4fbf3c65c2dea874f48ade2f74f5f863558 /src/prog.h | |
parent | 6dd0ec08db301984b8f8f9082f28006d5915c183 (diff) | |
download | pies-2ba31eb953d18bb818a87caddcbca80bc8a1d37d.tar.gz pies-2ba31eb953d18bb818a87caddcbca80bc8a1d37d.tar.bz2 |
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.
Diffstat (limited to 'src/prog.h')
-rw-r--r-- | src/prog.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -26,13 +26,13 @@ enum prog_status | |||
26 | status_stopped, /* Component is stopped. */ | 26 | status_stopped, /* Component is stopped. */ |
27 | status_running, /* Component is running */ | 27 | status_running, /* Component is running */ |
28 | status_listener, /* Component is an inetd listener */ | 28 | status_listener, /* Component is an inetd listener */ |
29 | status_sleeping, /* Component is sleeping. An attempt to start it will | 29 | status_sleeping, /* Component is sleeping. An attempt to start it will |
30 | be made at prog->v.p.timestamp + SLEEPTIME */ | 30 | be made at prog->v.p.timestamp + SLEEPTIME */ |
31 | status_stopping, /* Component is being stopped */ | 31 | status_stopping, /* Component is being stopped */ |
32 | status_finished, /* A "once" component has finished */ | 32 | status_finished, /* A "once" or "startup" component has finished */ |
33 | }; | 33 | }; |
34 | 34 | ||
35 | struct conn_class | 35 | struct conn_class |
36 | { | 36 | { |
37 | const char *tag; | 37 | const char *tag; |
38 | union pies_sockaddr_storage sa_storage; | 38 | union pies_sockaddr_storage sa_storage; |