diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-09-28 14:17:25 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-09-28 14:17:25 +0000 |
commit | be21a7d2e77026c5eab866b5e0b136d0f2d17bd5 (patch) | |
tree | d86159f7f4eee0a8dfa1cb83f6cd0f2d0e92ac9b | |
parent | 9cbe5d3697555f4aa3b6ff492356b5003c505142 (diff) |
1999-09-23 Mark Kettenis <kettenis@gnu.org>
* getty.c (main): Report an error if login_tty failed.
-rw-r--r-- | daemons/ChangeLog | 4 | ||||
-rw-r--r-- | daemons/getty.c | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/daemons/ChangeLog b/daemons/ChangeLog index c94f4711..f93ca603 100644 --- a/daemons/ChangeLog +++ b/daemons/ChangeLog @@ -1,3 +1,7 @@ +1999-09-23 Mark Kettenis <kettenis@gnu.org> + + * getty.c (main): Report an error if login_tty failed. + 1999-09-22 Roland McGrath <roland@baalperazim.frob.com> * getty.c: Undo last change. 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"); |