From 1ae004d61172a0bbe38666e1551aefb1b5f1c028 Mon Sep 17 00:00:00 2001 From: dg Date: Mon, 11 Sep 1995 21:02:02 +0000 Subject: sys_term.c: killed sleep(1) as this should no longer be a problem with the move of startslave(). telnetd.c: fix bug introduced with the move of startslave()...the number of arguments was wrong and "level" and "user_name" had to be made globals. --- eBones/libexec/telnetd/sys_term.c | 6 ------ eBones/libexec/telnetd/telnetd.c | 6 +++--- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'eBones') diff --git a/eBones/libexec/telnetd/sys_term.c b/eBones/libexec/telnetd/sys_term.c index ed171f1..7d17dfb 100644 --- a/eBones/libexec/telnetd/sys_term.c +++ b/eBones/libexec/telnetd/sys_term.c @@ -1779,12 +1779,6 @@ start_login(host, autologin, name) close(pty); #endif closelog(); - /* - * This sleep(1) is in here so that telnetd can - * finish up with the tty. There's a race condition - * the login banner message gets lost... - */ - sleep(1); execv(_PATH_LOGIN, argv); syslog(LOG_ERR, "%s: %m\n", _PATH_LOGIN); diff --git a/eBones/libexec/telnetd/telnetd.c b/eBones/libexec/telnetd/telnetd.c index 86efc5b..707c68a 100644 --- a/eBones/libexec/telnetd/telnetd.c +++ b/eBones/libexec/telnetd/telnetd.c @@ -782,6 +782,8 @@ char remote_host_name[MAXHOSTNAMELEN]; extern void telnet P((int, int, char *)); +int level; +char user_name[256]; /* * Get a pty, scan input lines. */ @@ -791,9 +793,7 @@ doit(who) char *host, *inet_ntoa(); int t; struct hostent *hp; - int level; int ptynum; - char user_name[256]; /* * Find an available pty to use. @@ -1149,7 +1149,7 @@ telnet(f, p, host) * now. We delay this until here to insure option negotiation * is complete. */ - startslave(host); + startslave(host, level, user_name); nfd = ((f > p) ? f : p) + 1; for (;;) { -- cgit v1.1