diff options
author | ache <ache@FreeBSD.org> | 1999-04-24 18:25:35 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1999-04-24 18:25:35 +0000 |
commit | b9837c617fcb27a4ab27d16c466ace6ce25912ef (patch) | |
tree | 413628be33d97d54b7e4c923744d81caf894f0b0 /sys/netinet | |
parent | 4891334365b11be855307ff3375b9fa2b9508b16 (diff) | |
download | FreeBSD-src-b9837c617fcb27a4ab27d16c466ace6ce25912ef.zip FreeBSD-src-b9837c617fcb27a4ab27d16c466ace6ce25912ef.tar.gz |
so_linger is in seconds, not in 1/HZ
PR: 11252
Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 66519ce..5d231c9 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * From: @(#)tcp_usrreq.c 8.2 (Berkeley) 1/3/94 - * $Id: tcp_usrreq.c,v 1.39 1998/12/07 21:58:42 archie Exp $ + * $Id: tcp_usrreq.c,v 1.40 1999/01/20 17:31:59 fenner Exp $ */ #include "opt_tcpdebug.h" @@ -111,7 +111,7 @@ tcp_usr_attach(struct socket *so, int proto, struct proc *p) goto out; if ((so->so_options & SO_LINGER) && so->so_linger == 0) - so->so_linger = TCP_LINGERTIME * hz; + so->so_linger = TCP_LINGERTIME; tp = sototcpcb(so); out: TCPDEBUG2(PRU_ATTACH); |