aboutsummaryrefslogtreecommitdiff
path: root/src/prog.h
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-10-31 17:14:07 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-10-31 17:14:07 +0200
commitc221897e72debfb161365c28f08d7f4bac5511e5 (patch)
tree9db9ef8e74d27cb32cb02c4eb45ce277b744a2a9 /src/prog.h
parent9861a788306d5f742e633ff6a8a26a913f5e3fd1 (diff)
downloadpies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.gz
pies-c221897e72debfb161365c28f08d7f4bac5511e5.tar.bz2
Implement list control command.
* src/ctl.c: Implement list. * src/prog.h (IS_COMPONENT): New macro (from progman.c) * src/progman.c: Move IS_COMPONENT to src/prog.h * src/socket.c (create_socket): Clear uid, gid and umaskval for inet sockets.
Diffstat (limited to 'src/prog.h')
-rw-r--r--src/prog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/prog.h b/src/prog.h
index 8fddf97..9e55e56 100644
--- a/src/prog.h
+++ b/src/prog.h
@@ -82,5 +82,7 @@ struct prog
} v;
};
+#define IS_COMPONENT(p) ((p)->type == TYPE_COMPONENT)
+
void progman_foreach (int (*filter) (struct prog *, void *data), void *data);
void prog_stop (struct prog *prog, int sig);

Return to:

Send suggestions and report system problems to the System administrator.