summaryrefslogtreecommitdiff
path: root/daemons/getty.c
diff options
context:
space:
mode:
Diffstat (limited to 'daemons/getty.c')
-rw-r--r--daemons/getty.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/getty.c b/daemons/getty.c
index 02ebacff..4810e6dd 100644
--- a/daemons/getty.c
+++ b/daemons/getty.c
@@ -97,7 +97,8 @@ main (int argc, char **argv)
print_banner (tty, ttyname);
- login_tty (tty);
+ if (login_tty (tty) == -1)
+ syslog (LOG_ERR, "cannot set controlling terminal to %s: %m", ttyname);
asprintf (&arg, "TERM=%s", tt ? tt->ty_type : "unknown");