summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1995-12-20 21:58:37 +0000
committerderaadt <deraadt@openbsd.org>1995-12-20 21:58:37 +0000
commit1335fd6042d0364ecae305e11e0b551f2de9f691 (patch)
tree7c94b32dd45a0e3119553125bbd330c6901591b6
parentuse an ${INSTALL_MAN} variable to allow cvs to still be compiled on other machines (diff)
downloadwireguard-openbsd-1335fd6042d0364ecae305e11e0b551f2de9f691.tar.xz
wireguard-openbsd-1335fd6042d0364ecae305e11e0b551f2de9f691.zip
stall all three server:server pipes, and 2MB instead of 256K
-rw-r--r--gnu/usr.bin/cvs/src/server.c24
1 files changed, 13 insertions, 11 deletions
diff --git a/gnu/usr.bin/cvs/src/server.c b/gnu/usr.bin/cvs/src/server.c
index 9053f6c5013..54aabb72130 100644
--- a/gnu/usr.bin/cvs/src/server.c
+++ b/gnu/usr.bin/cvs/src/server.c
@@ -2165,17 +2165,19 @@ do_cvs_command (command)
FD_ZERO (&writefds);
if (! buf_empty_p (&outbuf))
FD_SET (STDOUT_FILENO, &writefds);
- if (stdout_pipe[0] >= 0 && buf_len (&outbuf) < 256*1024)
- {
- FD_SET (stdout_pipe[0], &readfds);
- }
- if (stderr_pipe[0] >= 0)
- {
- FD_SET (stderr_pipe[0], &readfds);
- }
- if (protocol_pipe[0] >= 0)
- {
- FD_SET (protocol_pipe[0], &readfds);
+ if ( buf_len (&outbuf) < 2*1024*1024) {
+ if (stdout_pipe[0] >= 0)
+ {
+ FD_SET (stdout_pipe[0], &readfds);
+ }
+ if (stderr_pipe[0] >= 0)
+ {
+ FD_SET (stderr_pipe[0], &readfds);
+ }
+ if (protocol_pipe[0] >= 0)
+ {
+ FD_SET (protocol_pipe[0], &readfds);
+ }
}
do {