diff options
author | Mathias Stearn <mathias@10gen.com> | 2013-11-01 14:09:40 -0400 |
---|---|---|
committer | Mathias Stearn <mathias@10gen.com> | 2013-11-06 19:13:14 -0500 |
commit | ca5b94c240863d20b2eaa341d9242624c9452822 (patch) | |
tree | 2f026936e12b319d8873571529e2b41513b7a908 /src/mongo/util/signal_handlers.cpp | |
parent | 5f695995bda5b9a51c813a5f571a785f2bf3101f (diff) | |
download | mongo-ca5b94c240863d20b2eaa341d9242624c9452822.tar.gz |
SERVER-11613 Fix some brokenness in test logging
Changes:
* smoke.py captures both stdout and stderr of subprocesses
* Log buffering reduced (main log() function already was line-buffered).
* printStackAndExit writes to stdout rather than stdin.
Diffstat (limited to 'src/mongo/util/signal_handlers.cpp')
-rw-r--r-- | src/mongo/util/signal_handlers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/util/signal_handlers.cpp b/src/mongo/util/signal_handlers.cpp index 3c54aa7badd..2aa0721bd0c 100644 --- a/src/mongo/util/signal_handlers.cpp +++ b/src/mongo/util/signal_handlers.cpp @@ -116,7 +116,7 @@ namespace mongo { } void printStackAndExit( int signalNum ) { - const int fd = 0; + const int fd = 1; // same as STDOUT_FILENO which doesn't exist on windows formattedWrite( fd , "Received signal %d\n" , signalNum ); formattedWrite( fd , "Backtrace: " ); |