so_linger is in seconds, not in 1/HZ

PR: 11252
Submitted by: Martin Kammerhofer <dada@sbox.tu-graz.ac.at>
This commit is contained in:
ache 1999-04-24 18:25:35 +00:00
parent 4891334365
commit b9837c617f

View File

@ -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);