summaryrefslogtreecommitdiff
path: root/daemons/getty.c
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1999-09-28 14:17:25 +0000
committerThomas Bushnell <thomas@gnu.org>1999-09-28 14:17:25 +0000
commitbe21a7d2e77026c5eab866b5e0b136d0f2d17bd5 (patch)
treed86159f7f4eee0a8dfa1cb83f6cd0f2d0e92ac9b /daemons/getty.c
parent9cbe5d3697555f4aa3b6ff492356b5003c505142 (diff)
1999-09-23 Mark Kettenis <kettenis@gnu.org>
* getty.c (main): Report an error if login_tty failed.
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");