chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1f5e05
)
main: add kernel option to enable confirm_spawn
author
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 17:10:01 +0000
(19:10 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 13 Apr 2010 17:10:01 +0000
(19:10 +0200)
main.c
patch
|
blob
|
history
diff --git
a/main.c
b/main.c
index 622ba631519b90811d92e8aae79d9c15acf5514f..802e2ae9f33d1d518460c315b1391c35356b79a5 100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-250,6
+250,15
@@
static int parse_proc_cmdline_word(const char *word) {
else
crash_shell = r;
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;
} 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.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;
} else {
unsigned i;