From 84c0a5dcfe5457e17760d668151e508b658ed6e6 Mon Sep 17 00:00:00 2001 From: davidn Date: Sat, 19 Jul 1997 04:47:05 +0000 Subject: sleep() after sending 'nologin' file to ensure output is drained before disconnect. --- lib/libutil/login_auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libutil') diff --git a/lib/libutil/login_auth.c b/lib/libutil/login_auth.c index 695b006..1bd6c13 100644 --- a/lib/libutil/login_auth.c +++ b/lib/libutil/login_auth.c @@ -25,7 +25,7 @@ * * Low-level routines relating to the user capabilities database * - * $Id: login_auth.c,v 1.6 1997/02/22 15:08:18 peter Exp $ + * $Id: login_auth.c,v 1.7 1997/05/10 18:55:37 davidn Exp $ */ #include @@ -666,5 +666,6 @@ auth_cat(const char *file) while ((count = read(fd, buf, sizeof(buf))) > 0) (void)write(fileno(stdout), buf, count); close(fd); + sleep(5); /* wait an arbitrary time to drain */ return 1; } -- cgit v1.1