From 8ec421fa1428584e47388f68db931b3e9776b7c6 Mon Sep 17 00:00:00 2001 From: Marco Costalba Date: Sun, 25 Mar 2012 10:23:16 +0100 Subject: [PATCH] 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 --- src/main.cpp | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 31337fa6..1d5c6ea7 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(); -- 2.39.2