diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-05-14 04:36:24 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-05-14 04:36:24 +0200 |
commit | affda78706e2388902dd7c9ebdece52787afe3b4 (patch) | |
tree | de0f5ce333e606276c19da945c73c06e71aad420 /manager.c | |
parent | ea5652c296f325eceea351c19bf81a783cea4537 (diff) |
main: make sure we don't accidentally acquire a controlling terminal
Diffstat (limited to 'manager.c')
-rw-r--r-- | manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -68,7 +68,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)) < 0) + if ((fd = open_terminal("/dev/tty0", O_RDWR|O_NOCTTY)) < 0) log_warning("Failed to open /dev/tty0: %m"); else { /* Enable that we get SIGWINCH on kbrequest */ |