From: Marco Costalba Date: Sun, 25 Mar 2012 09:23:16 +0000 (+0100) Subject: Revert "Don't sync with C library I/O buffers" X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=8ec421fa1428584e47388f68db931b3e9776b7c6;p=fairystockfish.git Revert "Don't sync with C library I/O buffers" It seems is the cause of strange and rare hangs reported by some users where Stockfish stops responding to GUI. It is not clear why but for the moment revert the patch. No functional change. Signed-off-by: Marco Costalba --- diff --git a/src/main.cpp b/src/main.cpp index 31337fa..1d5c6ea 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -35,11 +35,6 @@ extern void kpk_bitbase_init(); int main(int argc, char* argv[]) { - // Don't sync with C library I/O buffers, faster but now using printf() - // or scanf() could yield to issues because buffers are independent. - cout.sync_with_stdio(false); - cin.sync_with_stdio(false); - cout << engine_info() << endl; bitboards_init();