summaryrefslogtreecommitdiff
path: root/service/service.h
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-09-15 21:29:23 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-09-15 21:43:23 +0100
commit68df9ac60426e1bb229c2c1a1127082f587dd432 (patch)
treefd19dc9615fceb8bf3df4a35f1c66edccbd0f82a /service/service.h
parent8a60e7e066cb0b364cae13c524dce16743633b0a (diff)
downloadprocd-68df9ac60426e1bb229c2c1a1127082f587dd432.tar.gz
procd: fix container deletion
Deleting a container could lead to an attempt NULL-pointer dereference crashing procd and triggering a reboot of the system. Properly handle service deletion to avoid that. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'service/service.h')
-rw-r--r--service/service.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/service/service.h b/service/service.h
index 48157cc..e148369 100644
--- a/service/service.h
+++ b/service/service.h
@@ -44,6 +44,7 @@ struct service {
const char *name;
bool deleted;
bool autostart;
+ bool container;
struct blob_attr *trigger;
struct vlist_tree instances;