Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Jul 1997 15:32:14 +1000
From:      David Nugent <davidn@labs.usn.blaze.net.au>
To:        Bruce Evans <bde@zeta.org.au>
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, cvs-lib@FreeBSD.ORG, davidn@FreeBSD.ORG
Subject:   Re: cvs commit: src/lib/libutil login_auth.c 
Message-ID:  <199707190532.PAA01163@labs.usn.blaze.net.au>
In-Reply-To: Your message of "Sat, 19 Jul 1997 15:09:36 %2B1000." <199707190509.PAA27608@godzilla.zeta.org.au> 

next in thread | previous in thread | raw e-mail | index | archive | help
>  >  Modified files:
>  >    lib/libutil          login_auth.c 
>  >  Log:
>  >  sleep() after sending 'nologin' file to ensure output is drained before
>  >  disconnect.
>  
>  This should use tcdrain(3).

Well, no, it doesn't appear to be an operating system issue. The
sleep() is done after the close(). The problem occurs when DCD
on a serial port is lowered before the *modem* has sent all of
its data, and I can easily reproduce the problem on a telnet
connection as well (due to telnet's usual misfeature of quitting
early). tcdrain() before the close() has no effect - I tried that
before I understood the problem.

-- 
David Nugent - Unique Computing Pty Ltd - Melbourne, Australia
Voice +61-3-9791-9547  Data/BBS +61-3-9792-3507  3:632/348@fidonet
davidn@freebsd.org davidn@blaze.net.au http://www.blaze.net.au/~davidn/




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199707190532.PAA01163>