summaryrefslogtreecommitdiffstats
path: root/src/core/swap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2023-09-09 11:57:39 +0200
committerLennart Poettering <lennart@poettering.net>2023-09-09 14:10:41 +0200
commit436cdf0a077e16daa5f1617460613a8a7924ccfd (patch)
treeeaaa48a75a674e18d7245018b164dc439f4e1bf6 /src/core/swap.h
parentcore: also port mount units to PidRef (diff)
downloadsystemd-436cdf0a077e16daa5f1617460613a8a7924ccfd.tar.xz
systemd-436cdf0a077e16daa5f1617460613a8a7924ccfd.zip
core: also port swap units to PidRef
Diffstat (limited to 'src/core/swap.h')
-rw-r--r--src/core/swap.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/swap.h b/src/core/swap.h
index d61c7112cf..f2cae6766b 100644
--- a/src/core/swap.h
+++ b/src/core/swap.h
@@ -6,6 +6,8 @@
***/
#include "sd-device.h"
+
+#include "pidref.h"
#include "unit.h"
typedef struct Swap Swap;
@@ -73,7 +75,7 @@ struct Swap {
ExecCommand* control_command;
SwapExecCommand control_command_id;
- pid_t control_pid;
+ PidRef control_pid;
sd_event_source *timer_event_source;