Skip to content

Commit

Permalink
more compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dwight committed Apr 24, 2010
1 parent 7c30f9f commit d11dad4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions db/db.sln
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,18 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "unix files", "unix files", "{2F760952-C71B-4865-998F-AABAE96D1373}"
ProjectSection(SolutionItems) = preProject
..\util\mmap_posix.cpp = ..\util\mmap_posix.cpp
..\util\processinfo_darwin.cpp = ..\util\processinfo_darwin.cpp
..\util\processinfo_linux2.cpp = ..\util\processinfo_linux2.cpp
..\util\processinfo_none.cpp = ..\util\processinfo_none.cpp
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "shell", "shell", "{407B4B88-3451-433C-B74F-31B31FEB5791}"
ProjectSection(SolutionItems) = preProject
..\shell\dbshell.cpp = ..\shell\dbshell.cpp
..\shell\mongo.cpp = ..\shell\mongo.cpp
..\shell\mongo_vstudio.cpp = ..\shell\mongo_vstudio.cpp
..\shell\utils.cpp = ..\shell\utils.cpp
..\shell\utils.h = ..\shell\utils.h
EndProjectSection
EndProject
Global
Expand Down
4 changes: 2 additions & 2 deletions shell/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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: " << OUTPUT_ERRNO() << 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: " << OUTPUT_ERRNO() << endl;
::_Exit(-1);
}

Expand Down

0 comments on commit d11dad4

Please sign in to comment.