summaryrefslogtreecommitdiff
path: root/lib/include
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-11 16:07:20 +0200
committerDavid Oberhollenzer <david.oberhollenzer@tele2.at>2018-04-11 16:08:25 +0200
commit71d98c150f6242fcf1b8a5845e46db56caad3885 (patch)
tree96cc861544c214039eb61cf38df170a6d9190acb /lib/include
parent4ee0ea9754d4c8103a623c90c03b68457c71581f (diff)
Don't split dependencies into argument vector, keep list of strings
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
Diffstat (limited to 'lib/include')
-rw-r--r--lib/include/service.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/lib/include/service.h b/lib/include/service.h
index fee3ea3..471ccbb 100644
--- a/lib/include/service.h
+++ b/lib/include/service.h
@@ -62,14 +62,11 @@ typedef struct service_t {
/* linked list of command lines to execute */
exec_t *exec;
- /* NULL terminated array of services that must be executed later */
- char **before;
+ char *before; /* services that must be executed later */
+ char *after; /* services that must be executed first */
- /* NULL terminated array of services that must be executed first */
- char **after;
-
- char *raw_before; /* backing store for 'before' contents */
- char *raw_after; /* backing store for 'after' contents */
+ int num_before;
+ int num_after;
pid_t pid;
int status; /* process exit status */