]> err.no Git - systemd/commitdiff
systemctl: fix opening params
authorLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2011 00:11:19 +0000 (01:11 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 9 Feb 2011 00:11:19 +0000 (01:11 +0100)
src/systemctl.c

index 8527cd1aa00f2cf1064c0378c59cef4e9ddf1263..c09b31d1df08ed48892f6cb4c0eb0f97d9c2129d 100644 (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);
                 }