systemctl: fix opening params

This commit is contained in:
Lennart Poettering 2011-02-09 01:11:19 +01:00
parent 715554e7b2
commit b1c0f1c136
1 changed files with 1 additions and 1 deletions

View File

@ -180,7 +180,7 @@ static void spawn_ask_password_agent(void) {
* call that expects to read EOF we actually do
* generate EOF and not delay this indefinitely by
* because we keep an unused copy of stdin around. */
if ((fd = open("/dev/tty", O_RDWR|O_CLOEXEC|O_NONBLOCK)) < 0) {
if ((fd = open("/dev/tty", O_RDWR)) < 0) {
log_error("Failed to open /dev/tty: %m");
_exit(EXIT_FAILURE);
}