1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

* Enable buffering of stderr in C++.

This commit is contained in:
Eelco Dolstra 2003-10-16 11:55:37 +00:00
parent f7c7aad135
commit c78bf11524

View file

@ -53,6 +53,10 @@ int main(int argc, char * * argv)
ATerm bottomOfStack;
ATinit(argc, argv, &bottomOfStack);
/* Turn on buffering for cerr. */
char buf[1024];
cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
try {
initAndRun(argc, argv);
} catch (UsageError & e) {