summaryrefslogtreecommitdiff
path: root/shell
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-04-24 21:42:37 -0400
committerEliot Horowitz <eliot@10gen.com>2010-04-24 21:42:37 -0400
commit98f7edd4cd06e63934700c9a79d1726e9db68a34 (patch)
treee32e32bfdd3adbf57ea76bef9f324c6ab67c6d71 /shell
parent5be10027f3663b580f57a13dd58d5d307199bd07 (diff)
downloadmongo-98f7edd4cd06e63934700c9a79d1726e9db68a34.tar.gz
compile
Diffstat (limited to 'shell')
-rw-r--r--shell/utils.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/utils.cpp b/shell/utils.cpp
index 31e69e48efe..ab572b0f5f4 100644
--- a/shell/utils.cpp
+++ b/shell/utils.cpp
@@ -379,13 +379,13 @@ namespace mongo {
if ( dup2( child_stdout, STDOUT_FILENO ) == -1 ||
dup2( child_stdout, STDERR_FILENO ) == -1 )
{
- cout << "Unable to dup2 child output: " << OUTPUT_ERRNO() << endl;
+ cout << "Unable to dup2 child output: " << errnoWithDescription() << endl;
::_Exit(-1); //do not pass go, do not call atexit handlers
}
execvp( argv[ 0 ], const_cast<char**>(argv) );
- cout << "Unable to start program: " << OUTPUT_ERRNO() << endl;
+ cout << "Unable to start program: " << errnoWithDescription() << endl;
::_Exit(-1);
}