summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-04-13 19:10:01 +0200
committerLennart Poettering <lennart@poettering.net>2010-04-13 19:10:01 +0200
commit5e7ee61c1a2b45c1006336f22ded8e099d155270 (patch)
treef675b243c453d66052da5314cc0344b9b2f5af09 /main.c
parente1f5e051099d550ca6ed78539bf3e519656ef18a (diff)
main: add kernel option to enable confirm_spawn
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
index 622ba63151..802e2ae9f3 100644
--- a/main.c
+++ b/main.c
@@ -250,6 +250,15 @@ static int parse_proc_cmdline_word(const char *word) {
else
crash_shell = r;
+
+ } else if (startswith(word, "systemd.confirm_spawn=")) {
+ int r;
+
+ if ((r = parse_boolean(word + 22)) < 0)
+ log_warning("Failed to parse confirm spawn switch %s, Ignoring.", word + 22);
+ else
+ confirm_spawn = r;
+
} else if (startswith(word, "systemd.crash_chvt=")) {
int k;
@@ -269,6 +278,7 @@ static int parse_proc_cmdline_word(const char *word) {
log_info("systemd.dump_core=0|1 Dump core on crash");
log_info("systemd.crash_shell=0|1 On crash run shell");
log_info("systemd.crash_chvt=N Change to VT #N on crash");
+ log_info("systemd.confirm_spawn=0|1 Confirm every process spawn");
} else {
unsigned i;