From be21a7d2e77026c5eab866b5e0b136d0f2d17bd5 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Tue, 28 Sep 1999 14:17:25 +0000 Subject: 1999-09-23 Mark Kettenis * getty.c (main): Report an error if login_tty failed. --- daemons/getty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'daemons/getty.c') 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"); -- cgit v1.2.3