Fix parsing of cmdline -os & -pr options. Bug 2538
[exim.git] / src / src / receive.c
index 6d20a5cdae255ee68582545a7c3db1f974ec7203..8f3bfefacd162cfaaa75d85b0f765e0322983034 100644 (file)
@@ -645,6 +645,11 @@ if (!f.dot_ends)
   {
   int last_ch = '\n';
 
+/*XXX we do a gettimeofday before checking for every received char,
+which is hardly clever.  The function-indirection doesn't help, but
+an additional function to check for nonempty read buffer would help.
+See stdin_getc() / smtp_getc() / tls_getc() / bdat_getc(). */
+
   for ( ;
        log_close_chk(), (ch = (receive_getc)(GETC_BUFFER_UNLIMITED)) != EOF;
        last_ch = ch)