diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:49:37 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-10 04:49:37 +0200 |
commit | 2e22afe909cd5fa003347aa91ad15f0516e5047f (patch) | |
tree | 3d1c91121458414837a90872467112a585f57cc5 /src/execute.c | |
parent | 73c33e7f225f81e6066386fba997e8ea2ba361b3 (diff) |
execute: add ability to configure the kill signal
Diffstat (limited to 'src/execute.c')
-rw-r--r-- | src/execute.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/execute.c b/src/execute.c index 955a3e2378..0c2526b33e 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1308,6 +1308,7 @@ void exec_context_init(ExecContext *c) { c->syslog_priority = LOG_DAEMON|LOG_INFO; c->syslog_level_prefix = true; c->mount_flags = MS_SHARED; + c->kill_signal = SIGTERM; } void exec_context_done(ExecContext *c) { @@ -1571,6 +1572,12 @@ void exec_context_dump(ExecContext *c, FILE* f, const char *prefix) { strv_fprintf(f, c->inaccessible_dirs); fputs("\n", f); } + + fprintf(f, + "%sKillMode: %s\n" + "%sKillSignal: SIG%s\n", + prefix, kill_mode_to_string(c->kill_mode), + prefix, signal_to_string(c->kill_signal)); } void exec_status_start(ExecStatus *s, pid_t pid) { |