Sleep for a second before sending the first LCP

config request.  This stops us from squirting stuff
down a line that still has ECHO turned on because the
peer hasn't had a chance to start yet.
Lead to the cause by:	Greg Lehey <grog@lemis.com>
This commit is contained in:
brian 1997-09-21 23:01:34 +00:00
parent 1fe2f80260
commit 2a712aab9b

View File

@ -17,7 +17,7 @@
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*
* $Id: lcp.c,v 1.29 1997/09/03 00:40:49 brian Exp $
* $Id: lcp.c,v 1.30 1997/09/03 02:08:19 brian Exp $
*
* TODO:
* o Validate magic number received from peer.
@ -390,6 +390,8 @@ void
LcpOpen(int mode)
{
LcpFsm.open_mode = mode;
if (mode == OPEN_ACTIVE)
sleep(1); /* Give the peer time to start up */
FsmOpen(&LcpFsm);
}