summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-02-09 01:11:19 +0100
committerLennart Poettering <lennart@poettering.net>2011-02-09 01:11:19 +0100
commitb1c0f1c1366eaec64a804c6011df867ea75ed295 (patch)
treec1db920294ab31cb0488cd21a21ac9f7686b9155
parent715554e7b2171d263274f29407c16215e50f7c0a (diff)
systemctl: fix opening params
-rw-r--r--src/systemctl.c2
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);
}