- The timeout value passed to tsleep is in milliseconds and so_linger is in seconds so convert to milliseconds

svn path=/trunk/; revision=41632
This commit is contained in:
Cameron Gutman 2009-06-27 06:59:22 +00:00
parent 689615967e
commit 9722b61095

View file

@ -190,7 +190,7 @@ soclose(so)
goto drop;
while (so->so_state & SS_ISCONNECTED) {
error = tsleep((caddr_t)&so->so_timeo,
PSOCK | PCATCH, netcls, so->so_linger);
PSOCK | PCATCH, netcls, so->so_linger * 1000);
if (error)
break;
}