diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-01-29 13:38:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-01-29 13:42:06 +0100 |
commit | 58ea275a68cd242ad60161bcb7582614d1d89f13 (patch) | |
tree | 13573e930a8e30caf8e47e0658cc0522575bf713 /src/core/kill.c | |
parent | 373f14222e6ff11ad0b129b033e01f75f7c504f3 (diff) |
core: introduce new KillMode=mixed which sends SIGTERM only to the main process, but SIGKILL to all daemon processes
This should fix some race with terminating systemd --user, where the
system systemd instance might race against the user systemd instance
when sending SIGTERM.
Diffstat (limited to 'src/core/kill.c')
-rw-r--r-- | src/core/kill.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/kill.c b/src/core/kill.c index ea947c23ae..4271346511 100644 --- a/src/core/kill.c +++ b/src/core/kill.c @@ -52,6 +52,7 @@ void kill_context_dump(KillContext *c, FILE *f, const char *prefix) { static const char* const kill_mode_table[_KILL_MODE_MAX] = { [KILL_CONTROL_GROUP] = "control-group", [KILL_PROCESS] = "process", + [KILL_MIXED] = "mixed", [KILL_NONE] = "none" }; |