diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-01-18 22:55:54 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-01-18 22:55:54 +0100 |
commit | ba035df230e41bf9d70ebb47915c9472b7884412 (patch) | |
tree | 37f5af1b2de9a93e15ee36ef080436619cfdbec9 /src/execute.c | |
parent | 0058d7b91ca90ee2dc605298bc5bac9bef0ededf (diff) |
execute: make sending of SIGKILL on shutdown optional
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/execute.c b/src/execute.c index 1e8dfaf770..10ce951c59 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1349,6 +1349,7 @@ void exec_context_init(ExecContext *c) { c->syslog_level_prefix = true; c->mount_flags = MS_SHARED; c->kill_signal = SIGTERM; + c->send_sigkill = true; } void exec_context_done(ExecContext *c) { @@ -1618,9 +1619,11 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) { fprintf(f, "%sKillMode: %s\n" - "%sKillSignal: SIG%s\n", + "%sKillSignal: SIG%s\n" + "%sSendSIGKILL: %s\n", prefix, kill_mode_to_string(c->kill_mode), - prefix, signal_to_string(c->kill_signal)); + prefix, signal_to_string(c->kill_signal), + prefix, yes_no(c->send_sigkill)); if (c->utmp_id) fprintf(f, |