From 1fdbc7ae46c8b06da4c4bf1ec17f3f68335c0ac6 Mon Sep 17 00:00:00 2001 From: Garrett Wollman Date: Thu, 16 Feb 1995 01:42:45 +0000 Subject: [PATCH] Correctly initialize so_linger in ticks (not seconds). Obtained from: Stevens, vol. 2, p. 1010 --- sys/netinet/tcp_usrreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index f81e5ddaf8d..cd6d15a3b5b 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -30,8 +30,8 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94 - * $Id: tcp_usrreq.c,v 1.7 1995/02/09 23:13:27 wollman Exp $ + * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94 + * $Id: tcp_usrreq.c,v 1.9 1995/02/16 00:55:43 wollman Exp $ */ #include @@ -138,7 +138,7 @@ tcp_usrreq(so, req, m, nam, control) if (error) break; if ((so->so_options & SO_LINGER) && so->so_linger == 0) - so->so_linger = TCP_LINGERTIME; + so->so_linger = TCP_LINGERTIME * hz; tp = sototcpcb(so); break;