summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-05-14 04:36:24 +0200
committerLennart Poettering <lennart@poettering.net>2010-05-14 04:36:24 +0200
commitaffda78706e2388902dd7c9ebdece52787afe3b4 (patch)
treede0f5ce333e606276c19da945c73c06e71aad420 /main.c
parentea5652c296f325eceea351c19bf81a783cea4537 (diff)
main: make sure we don't accidentally acquire a controlling terminal
Diffstat (limited to 'main.c')
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index 6c730eb435..1f407dce21 100644
--- a/main.c
+++ b/main.c
@@ -191,7 +191,7 @@ static int console_setup(bool do_reset) {
release_terminal();
- if ((tty_fd = open_terminal("/dev/console", O_WRONLY)) < 0) {
+ if ((tty_fd = open_terminal("/dev/console", O_WRONLY|O_NOCTTY)) < 0) {
log_error("Failed to open /dev/console: %s", strerror(-tty_fd));
r = -tty_fd;
goto finish;