Add clearerr(stdin) in -bem code (needed for Darwin).
authorPhilip Hazel <ph10@hermes.cam.ac.uk>
Tue, 7 Nov 2006 11:07:43 +0000 (11:07 +0000)
committerPhilip Hazel <ph10@hermes.cam.ac.uk>
Tue, 7 Nov 2006 11:07:43 +0000 (11:07 +0000)
src/src/exim.c

index 622b1ed01e4581d9d5d2526c0cbb2d1b03230cdf..0b764e99ab3544615a05fd5ca20614070e5c22a3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Cambridge: exim/src/src/exim.c,v 1.47 2006/11/07 10:28:09 ph10 Exp $ */
+/* $Cambridge: exim/src/src/exim.c,v 1.48 2006/11/07 11:07:43 ph10 Exp $ */
 
 /*************************************************
 *     Exim - an Internet mail transport agent    *
@@ -4238,6 +4238,7 @@ if (expansion_test)
     message_linecount += body_linecount;
     (void)dup2(save_stdin, 0);
     (void)close(save_stdin);
+    clearerr(stdin);               /* Required by Darwin */
     }
 
   /* Allow $recipients for this testing */