sleep() after sending 'nologin' file to ensure output is drained before
disconnect.
This commit is contained in:
parent
1dec61e7c0
commit
78e4c02479
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=27524
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user