diff options
author | davidn <davidn@FreeBSD.org> | 1997-07-19 04:47:05 +0000 |
---|---|---|
committer | davidn <davidn@FreeBSD.org> | 1997-07-19 04:47:05 +0000 |
commit | 84c0a5dcfe5457e17760d668151e508b658ed6e6 (patch) | |
tree | 1859d4a2c74f6304fb87ec4c47a0c03704164ecc /lib/libutil/login_auth.c | |
parent | 11a19ed09ab9da8aa52c25f266ae7f5d57ecfef3 (diff) | |
download | FreeBSD-src-84c0a5dcfe5457e17760d668151e508b658ed6e6.zip FreeBSD-src-84c0a5dcfe5457e17760d668151e508b658ed6e6.tar.gz |
sleep() after sending 'nologin' file to ensure output is drained before
disconnect.
Diffstat (limited to 'lib/libutil/login_auth.c')
-rw-r--r-- | lib/libutil/login_auth.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 <sys/types.h> @@ -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; } |