summaryrefslogtreecommitdiffstats
path: root/src/core/manager.h
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-09-21 16:39:48 +0200
committerGitHub <noreply@github.com>2021-09-21 16:39:48 +0200
commit71a80dcc0b64b01c73e7141c4292ef301543a011 (patch)
tree243926fdd5d3859130ff33617e9ddfe852c5a09b /src/core/manager.h
parentmeson: fix creation of man pages indices (diff)
parentoom: Add support for user unit ManagedOOM property updates (diff)
downloadsystemd-71a80dcc0b64b01c73e7141c4292ef301543a011.tar.xz
systemd-71a80dcc0b64b01c73e7141c4292ef301543a011.zip
Merge pull request #20690 from DaanDeMeyer/oomd-user-services
oom: Support for user services
Diffstat (limited to 'src/core/manager.h')
-rw-r--r--src/core/manager.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/manager.h b/src/core/manager.h
index 28b3e851b6..67957fdfbe 100644
--- a/src/core/manager.h
+++ b/src/core/manager.h
@@ -443,8 +443,11 @@ struct Manager {
bool honor_device_enumeration;
VarlinkServer *varlink_server;
- /* Only systemd-oomd should be using this to subscribe to changes in ManagedOOM settings */
- Varlink *managed_oom_varlink_request;
+ /* When we're a system manager, this object manages the subscription from systemd-oomd to PID1 that's
+ * used to report changes in ManagedOOM settings (systemd server - oomd client). When
+ * we're a user manager, this object manages the client connection from the user manager to
+ * systemd-oomd to report changes in ManagedOOM settings (systemd client - oomd server). */
+ Varlink *managed_oom_varlink;
};
static inline usec_t manager_default_timeout_abort_usec(Manager *m) {