diff options
author | David Greenman <dg@FreeBSD.org> | 1998-11-15 16:55:09 +0000 |
---|---|---|
committer | David Greenman <dg@FreeBSD.org> | 1998-11-15 16:55:09 +0000 |
commit | efac52b4abd3fa57e89b0b389c617fc15d301933 (patch) | |
tree | 95e0850386b4142fb95572da22dc19f620c56384 /sys/kern/uipc_syscalls.c | |
parent | b54e74eb87df25659dd217c2481fffc297901200 (diff) | |
download | src-efac52b4abd3fa57e89b0b389c617fc15d301933.tar.gz src-efac52b4abd3fa57e89b0b389c617fc15d301933.zip |
In sendfile(2), check against sb_lowat when filling the socket buffer,
rather than 0.
Notes
Notes:
svn path=/head/; revision=41175
Diffstat (limited to 'sys/kern/uipc_syscalls.c')
-rw-r--r-- | sys/kern/uipc_syscalls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/uipc_syscalls.c b/sys/kern/uipc_syscalls.c index d29acd6efc51..a35931e38863 100644 --- a/sys/kern/uipc_syscalls.c +++ b/sys/kern/uipc_syscalls.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * @(#)uipc_syscalls.c 8.4 (Berkeley) 2/21/94 - * $Id: uipc_syscalls.c,v 1.43 1998/11/06 19:16:30 dg Exp $ + * $Id: uipc_syscalls.c,v 1.44 1998/11/14 23:36:17 dg Exp $ */ #include "opt_compat.h" @@ -1645,7 +1645,7 @@ retry_space: * after checking the connection state above in order to avoid * a race condition with sbwait(). */ - if (sbspace(&so->so_snd) <= 0) { + if (sbspace(&so->so_snd) < so->so_snd.sb_lowat) { if (so->so_state & SS_NBIO) { m_freem(m); sbunlock(&so->so_snd); |