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.h | |
parent | 73c33e7f225f81e6066386fba997e8ea2ba361b3 (diff) |
execute: add ability to configure the kill signal
Diffstat (limited to 'src/execute.h')
-rw-r--r-- | src/execute.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/execute.h b/src/execute.h index a9075fe0eb..f93ab7a00b 100644 --- a/src/execute.h +++ b/src/execute.h @@ -45,6 +45,15 @@ struct CGroupBonding; #define SIGNALS_CRASH_HANDLER SIGSEGV,SIGILL,SIGFPE,SIGBUS,SIGQUIT,SIGABRT #define SIGNALS_IGNORE SIGKILL,SIGPIPE +typedef enum KillMode { + KILL_CONTROL_GROUP = 0, + KILL_PROCESS_GROUP, + KILL_PROCESS, + KILL_NONE, + _KILL_MODE_MAX, + _KILL_MODE_INVALID = -1 +} KillMode; + typedef enum ExecInput { EXEC_INPUT_NULL, EXEC_INPUT_TTY, @@ -143,6 +152,10 @@ struct ExecContext { * that the autofs logic detects that it belongs to us and we * don't enter a trigger loop. */ bool same_pgrp; + + /* Not relevant for spawning processes, just for killing */ + KillMode kill_mode; + int kill_signal; }; typedef enum ExitStatus { |