summaryrefslogtreecommitdiff
path: root/src/manager.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-07-03 23:20:39 +0200
committerLennart Poettering <lennart@poettering.net>2011-07-05 03:29:24 +0200
commitccaa61498c7932cbd5c91540841840266914b10e (patch)
treed8c0ba34822098dfc89825f7972592746ab78a9b /src/manager.c
parentb5ef5549e9889eea1c66c4ed88667b5922cd9f76 (diff)
add a few O_CLOEXEC where missing
Diffstat (limited to 'src/manager.c')
-rw-r--r--src/manager.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c
index 258b3ca4b7..7b725e34d8 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -136,7 +136,7 @@ static int enable_special_signals(Manager *m) {
if (reboot(RB_DISABLE_CAD) < 0)
log_warning("Failed to enable ctrl-alt-del handling: %m");
- if ((fd = open_terminal("/dev/tty0", O_RDWR|O_NOCTTY)) < 0)
+ if ((fd = open_terminal("/dev/tty0", O_RDWR|O_NOCTTY|O_CLOEXEC)) < 0)
log_warning("Failed to open /dev/tty0: %m");
else {
/* Enable that we get SIGWINCH on kbrequest */