diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-24 06:02:46 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-01-24 06:43:18 +0100 |
commit | b826e317541cd3fc6c0020a2353cc2fb4d0eff0c (patch) | |
tree | 3b7d54adb10d45062345623ecf50907c96c50217 /src/core/swap.c | |
parent | core: introduce unit_main_pid_full() which optionally provides if the PID is ... (diff) | |
download | systemd-b826e317541cd3fc6c0020a2353cc2fb4d0eff0c.tar.xz systemd-b826e317541cd3fc6c0020a2353cc2fb4d0eff0c.zip |
core: use helper functions like unit_main_pid() in unit_kill_context()
No functional changes. Just refactoring.
Diffstat (limited to 'src/core/swap.c')
-rw-r--r-- | src/core/swap.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/core/swap.c b/src/core/swap.c index 9f7c12b0c3..0022a3d0ac 100644 --- a/src/core/swap.c +++ b/src/core/swap.c @@ -734,13 +734,7 @@ static void swap_enter_signal(Swap *s, SwapState state, SwapResult f) { if (s->result == SWAP_SUCCESS) s->result = f; - r = unit_kill_context( - UNIT(s), - &s->kill_context, - state_to_kill_operation(s, state), - /* main_pid= */ NULL, - &s->control_pid, - /* main_pid_alien= */ false); + r = unit_kill_context(UNIT(s), state_to_kill_operation(s, state)); if (r < 0) { log_unit_warning_errno(UNIT(s), r, "Failed to kill processes: %m"); goto fail; |