X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fexecute.h;h=a6766f9e995b0ed799dc9be37aefdd47636ab0f3;hp=ed61e3c62fad6b223f6832e634e34745ea47a5bc;hb=022ef2064f4b1bf0222341c6912680e52a4ec10d;hpb=169c1bda807d183a362b47efe0b5b56e9320e430 diff --git a/src/execute.h b/src/execute.h index ed61e3c62..a6766f9e9 100644 --- a/src/execute.h +++ b/src/execute.h @@ -55,6 +55,14 @@ typedef enum KillMode { _KILL_MODE_INVALID = -1 } KillMode; +typedef enum KillWho { + KILL_MAIN, + KILL_CONTROL, + KILL_ALL, + _KILL_WHO_MAX, + _KILL_WHO_INVALID = -1 +} KillWho; + typedef enum ExecInput { EXEC_INPUT_NULL, EXEC_INPUT_TTY, @@ -137,6 +145,7 @@ struct ExecContext { /* Not relevant for spawning processes, just for killing */ KillMode kill_mode; int kill_signal; + bool send_sigkill; cap_t capabilities; int secure_bits; @@ -202,4 +211,10 @@ int exec_output_from_string(const char *s); const char* exec_input_to_string(ExecInput i); int exec_input_from_string(const char *s); +const char *kill_mode_to_string(KillMode k); +KillMode kill_mode_from_string(const char *s); + +const char *kill_who_to_string(KillWho k); +KillWho kill_who_from_string(const char *s); + #endif