1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-20 15:43:16 +00:00

Set the sender's low watermark to match the maximum size for atomic

writes that we advertise (PIPE_BUF = 512).
This commit is contained in:
Bruce Evans 1997-12-19 18:58:14 +00:00
parent 939d5a3dd8
commit b3a66dd356
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=31860
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95
* $Id: fifo_vnops.c,v 1.39 1997/12/13 12:58:09 bde Exp $
* $Id: fifo_vnops.c,v 1.40 1997/12/13 13:49:59 bde Exp $
*/
#include <sys/param.h>
@ -189,6 +189,7 @@ fifo_open(ap)
return (error);
}
fip->fi_readers = fip->fi_writers = 0;
wso->so_snd.sb_lowat = PIPE_BUF;
rso->so_state |= SS_CANTRCVMORE;
}
if (ap->a_mode & FREAD) {

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)fifo_vnops.c 8.10 (Berkeley) 5/27/95
* $Id: fifo_vnops.c,v 1.39 1997/12/13 12:58:09 bde Exp $
* $Id: fifo_vnops.c,v 1.40 1997/12/13 13:49:59 bde Exp $
*/
#include <sys/param.h>
@ -189,6 +189,7 @@ fifo_open(ap)
return (error);
}
fip->fi_readers = fip->fi_writers = 0;
wso->so_snd.sb_lowat = PIPE_BUF;
rso->so_state |= SS_CANTRCVMORE;
}
if (ap->a_mode & FREAD) {