cvs.patch 498 B

1234567891011121314151617
  1. Fix communication hanging in communication shutdown phase, caused by at
  2. least older CVS clients (version < 1.11.2) and a semantically incorrect
  3. usage of getc() by the server.
  4. --- cvs-1.11.2.orig/src/buffer.c 2001-08-09 21:26:35.000000000 +0200
  5. +++ cvs-1.11.2/src/buffer.c 2002-08-22 15:40:11.000000000 +0200
  6. @@ -1378,8 +1378,7 @@
  7. if (buf->input)
  8. {
  9. - if (! buf_empty_p (buf)
  10. - || getc (bc->fp) != EOF)
  11. + if (! buf_empty_p (buf))
  12. {
  13. # ifdef SERVER_SUPPORT
  14. if (server_active)