chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
main: make sure we don't accidentally acquire a controlling terminal
[elogind.git]
/
main.c
diff --git
a/main.c
b/main.c
index 6c730eb435ba4e7a567466ac291d835b5a35d15c..1f407dce214977b81465db106ab188351341b1ea 100644
(file)
--- 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;