path: root/src/comp.c
authorSergey Poznyakoff <>2016-02-16 05:15:42 (GMT)
committer Sergey Poznyakoff <>2016-02-16 05:15:42 (GMT)
commitbd8bd1640c72ceefd87b46a7a3d378c78c9081f5 (patch) (side-by-side diff)
tree8224d8dfd67ab70240744dfb2df4c3af9fd1f850 /src/comp.c
parent27366c475aa4955f296f169cf9acd33e36b9d7b3 (diff)
Associate program's activity flag with prog, instead of with component.
The CF_DISABLED flag is still retained to indicate that the component is disabled administratively. * src/prog.h (prog.v.p) <active>: New member. (IS_ACTIVE_COMPONENT): Use active flag. * src/comp.c (component_finish): Don't modify component flags. * src/ctl.c (prog_serialize): Replace attribute "disabled" with "active". (fun_stop): Set prog-> * src/pies.c (main): Use pies_master_argv to check whether program name is absolute. * src/piesctl.c (print_comp): Check "active" attribute. * src/progman.c (register_prog0): Set prog-> (progman_create_sockets): Remove components if their socket cannot be opened. (progman_lookup_tcpmux, prog_open_socket) (prog_start, progman_start) (prog_start_prerequisites, react): Operate on prog-> to test/change prog's activity state. * src/sysvinit.c (enablecomp, runlevel_setup_prog): Operate on prog-> to test/change prog's activity state. (demand_prog, IS_RUNNING_DISABLED_PROG): Likewise.
Diffstat (limited to 'src/comp.c') (more/less context) (ignore whitespace changes)
1 files changed, 0 insertions, 3 deletions
diff --git a/src/comp.c b/src/comp.c
index 83818c2..6a0e4ba 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -729,9 +729,6 @@ component_finish (struct component *comp, grecs_locus_t *locus)
comp->prereq = NULL;
- if (comp->mode == pies_comp_ondemand)
- comp->flags |= CF_DISABLED;

Return to:

Send suggestions and report system problems to the System administrator.