chiark / gitweb /
exec: hangup/reset/deallocate VTs in gettys
[elogind.git] / src / main.c
index b43d8eca918ffa9d94afdb5fa57fa430381aeb5f..52b3031fbe30ebb080affb08636f425bd317e33c 100644 (file)
@@ -203,7 +203,7 @@ static int console_setup(bool do_reset) {
                 return -tty_fd;
         }
 
-        if ((r = reset_terminal(tty_fd)) < 0)
+        if ((r = reset_terminal_fd(tty_fd)) < 0)
                 log_error("Failed to reset /dev/console: %s", strerror(-r));
 
         close_nointr_nofail(tty_fd);