From e52a696a9af9e46e6e2be799a344bd9fb34dd3f4 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 27 Mar 2023 14:32:58 +0200 Subject: execute: Do not pass destroy as a boolean argument to unref() Let's mimick what we do for DynamicUser and have two separate functions for unreffing and destroying a ExecSharedRuntime object. --- src/core/execute.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/execute.h') diff --git a/src/core/execute.h b/src/core/execute.h index 95d5de8fb8..10cd2c6046 100644 --- a/src/core/execute.h +++ b/src/core/execute.h @@ -484,7 +484,8 @@ void exec_status_dump(const ExecStatus *s, FILE *f, const char *prefix); void exec_status_reset(ExecStatus *s); int exec_shared_runtime_acquire(Manager *m, const ExecContext *c, const char *name, bool create, ExecSharedRuntime **ret); -ExecSharedRuntime *exec_shared_runtime_unref(ExecSharedRuntime *r, bool destroy); +ExecSharedRuntime *exec_shared_runtime_destroy(ExecSharedRuntime *r); +ExecSharedRuntime *exec_shared_runtime_unref(ExecSharedRuntime *r); int exec_shared_runtime_serialize(const Manager *m, FILE *f, FDSet *fds); int exec_shared_runtime_deserialize_compat(Unit *u, const char *key, const char *value, FDSet *fds); -- cgit v1.2.3