From b1c0f1c1366eaec64a804c6011df867ea75ed295 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 9 Feb 2011 01:11:19 +0100 Subject: [PATCH] systemctl: fix opening params --- src/systemctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/systemctl.c b/src/systemctl.c index 8527cd1aa..c09b31d1d 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); } -- 2.30.2