summaryrefslogtreecommitdiffstats
path: root/src/core/swap.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2017-11-17 16:43:08 +0100
committerLennart Poettering <lennart@poettering.net>2017-11-21 11:54:08 +0100
commit3c7416b6cae1006388755598415e1139727b926a (patch)
treedfe4bf644447a413011162c0d918ccd5bb4a1eda /src/core/swap.h
parentcgroup-util: move Set* allocation into cg_kernel_controllers() (diff)
downloadsystemd-3c7416b6cae1006388755598415e1139727b926a.tar.xz
systemd-3c7416b6cae1006388755598415e1139727b926a.zip
core: unify common code for preparing for forking off unit processes
This introduces a new function unit_prepare_exec() that encapsulates a number of calls we do in preparation for spawning off some processes in all our unit types that do so. This allows us to neatly unify a bit of code between unit types and shorten our code.
Diffstat (limited to 'src/core/swap.h')
-rw-r--r--src/core/swap.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/core/swap.h b/src/core/swap.h
index d1ee73de8e..fa9d45ac0c 100644
--- a/src/core/swap.h
+++ b/src/core/swap.h
@@ -71,8 +71,6 @@ struct Swap {
bool is_active:1;
bool just_activated:1;
- bool reset_accounting:1;
-
SwapResult result;
usec_t timeout_usec;