aboutsummaryrefslogtreecommitdiff
path: root/src/prog.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/prog.h')
-rw-r--r--src/prog.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/prog.h b/src/prog.h
index 4658518..3b20979 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -51,7 +51,8 @@ struct prog
struct
{
struct component *comp;
- int wait;
+ int wait :1;
+ int active :1;
int socket;
struct prog *redir[2]; /* Pointers to redirectors */
time_t timestamp; /* Time of last startup */
@@ -82,7 +83,7 @@ struct prog
#define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT)
#define IS_ACTIVE_COMPONENT(prog) \
- (IS_COMPONENT(prog) && !((prog)->v.p.comp->flags & CF_DISABLED))
+ (IS_COMPONENT(prog) && (prog)->v.p.active)
struct prog *progman_locate (const char *name);
int progman_foreach (int (*filter) (struct prog *, void *data), void *data);

Return to:

Send suggestions and report system problems to the System administrator.