* file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot.
authorMichael Hampton <io_error@uncensored.citadel.org>
Mon, 6 Sep 2004 00:59:01 +0000 (00:59 +0000)
committerMichael Hampton <io_error@uncensored.citadel.org>
Mon, 6 Sep 2004 00:59:01 +0000 (00:59 +0000)
citadel/ChangeLog
citadel/file_ops.c

index d956828937b92811aeb41a61874dadbc5852b78f..eb04434b1766f6024bffd6821fe6891226e9df91 100644 (file)
@@ -1,4 +1,7 @@
  $Log$
+ Revision 625.14  2004/09/06 00:59:01  error
+ * file_ops.c: cmd_writ(): Add an unbuffer_output() that I forgot.
+
  Revision 625.13  2004/09/05 17:39:09  error
  * Buffered output needs to be flushed in several places.  Added calls to
    flush_output().  (basically anywhere where we send a response and then
@@ -6051,4 +6054,3 @@ Sat Jul 11 00:20:48 EDT 1998 Nathan Bryant <bryant@cs.usm.maine.edu>
 
 Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
        * Initial CVS import
-
index 1f94f23e931acb8eecff69f36e53e009197ae24d..2430bec35a421a0f79d9077402a0d5353bc84e7c 100644 (file)
@@ -712,6 +712,8 @@ void cmd_writ(char *cmdbuf)
        int bytes;
        char buf[4096];
 
+       unbuffer_output();
+
        bytes = extract_int(cmdbuf, 0);
 
        if (CC->upload_fp == NULL) {
@@ -726,7 +728,6 @@ void cmd_writ(char *cmdbuf)
        }
 
        cprintf("%d %d\n", SEND_BINARY, bytes);
-       flush_output();
        client_read(buf, bytes);
        fwrite(buf, bytes, 1, CC->upload_fp);
 }