diff --git a/getty.c b/getty.c index a99b3ea3..6e366a1f 100644 --- a/getty.c +++ b/getty.c @@ -306,6 +306,7 @@ int getty(char *tty, char *baud, char *UNUSED(term), char *user) sigaction(SIGQUIT, &sa, NULL); stty(fd, speed); + close(fd); utmp_set_login(tty, NULL); if (!user)