diff options
author | Lennart Poettering <lennart@poettering.net> | 2016-11-18 11:08:06 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-18 11:08:06 +0100 |
commit | 2e6dbc0fcd45c152f15aed77cde4fd07957c150c (patch) | |
tree | f1110db4a4acf0dde5dc7f2eed58ad5eef47406b /src/core/swap.c | |
parent | 9a4550e2589bddb12cea93693b83211d805444e1 (diff) | |
parent | 539622bd8c0b425626cab8562c85a5b0e1dda502 (diff) |
Merge pull request #4538 from fbuihuu/confirm-spawn-fixes
Confirm spawn fixes/enhancements
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index b870ac88e3..bf404db8c3 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -636,7 +636,7 @@ static int swap_spawn(Swap *s, ExecCommand *c, pid_t *_pid) { goto fail; exec_params.environment = UNIT(s)->manager->environment; - exec_params.flags |= UNIT(s)->manager->confirm_spawn ? EXEC_CONFIRM_SPAWN : 0; + exec_params.confirm_spawn = manager_get_confirm_spawn(UNIT(s)->manager); exec_params.cgroup_supported = UNIT(s)->manager->cgroup_supported; exec_params.cgroup_path = UNIT(s)->cgroup_path; exec_params.cgroup_delegate = s->cgroup_context.delegate; |