summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-20 21:58:38 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1995-12-20 21:58:38 +0000
commit7d2c510c8ca831d2f40884218bdd55dbec2d1611 (patch)
tree6ca89fd79254903574675947e394feefc93dc4a8 /gnu
parent8c955757a6c1101a62d4f09367c98688cd35f75a (diff)
stall all three server:server pipes, and 2MB instead of 256K
Diffstat (limited to 'gnu')
-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 {