diff options
author | wollman <wollman@FreeBSD.org> | 1995-02-16 01:42:45 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1995-02-16 01:42:45 +0000 |
commit | a5efc621269eaed70a3bc51b461b4bf8dbc3ff82 (patch) | |
tree | ba4ce16c095dc85ea39a2e1780e56227676b6cc4 /sys/netinet/tcp_usrreq.c | |
parent | fb4135032a3021181a4d8eb72543e172b6db1d8b (diff) | |
download | FreeBSD-src-a5efc621269eaed70a3bc51b461b4bf8dbc3ff82.zip FreeBSD-src-a5efc621269eaed70a3bc51b461b4bf8dbc3ff82.tar.gz |
Correctly initialize so_linger in ticks (not seconds).
Obtained from: Stevens, vol. 2, p. 1010
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index f81e5dd..cd6d15a 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 <sys/param.h> @@ -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; |