diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-02-09 01:11:19 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-02-09 01:11:19 +0100 |
commit | b1c0f1c1366eaec64a804c6011df867ea75ed295 (patch) | |
tree | c1db920294ab31cb0488cd21a21ac9f7686b9155 /src | |
parent | 715554e7b2171d263274f29407c16215e50f7c0a (diff) |
systemctl: fix opening params
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index 8527cd1aa0..c09b31d1df 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -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); } |