summaryrefslogtreecommitdiff
path: root/main.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2005-02-18 05:19:51 +0000
committerJohn Wiegley <johnw@newartisans.com>2008-04-13 02:41:04 -0400
commit25655cf91a83aa0f127c33aa328448c2d6db6356 (patch)
tree9961aeec5ded255c3cd103a119f008c2b77c48a9 /main.cc
parent5c25fc413cfdd0fa7e0fa0fcd00fdcc4dea33975 (diff)
downloadfork-ledger-25655cf91a83aa0f127c33aa328448c2d6db6356.tar.gz
fork-ledger-25655cf91a83aa0f127c33aa328448c2d6db6356.tar.bz2
fork-ledger-25655cf91a83aa0f127c33aa328448c2d6db6356.zip
(main): Do not sync I/O streams with stdio, since I do not use stdin,
stdout or stderr.
Diffstat (limited to 'main.cc')
-rw-r--r--main.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/main.cc b/main.cc
index 4dd2c9e5..bbfbdfab 100644
--- a/main.cc
+++ b/main.cc
@@ -539,6 +539,8 @@ def vmax(d, val):\n\
int main(int argc, char * argv[], char * envp[])
{
+ std::ios::sync_with_stdio(false);
+
try {
return parse_and_report(argc, argv, envp);
}