Skip to content

Commit

Permalink
print error description, test timeout MINOR
Browse files Browse the repository at this point in the history
  • Loading branch information
astaple committed Apr 6, 2009
1 parent e3f1f1b commit aa5309a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions jstests/repl/repl7.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ doTest = function( signal ) {
assert.eq( 1, m.getDB( n ).a.find().count() );
}

sleep( 300 );

ports.forEach( function( x ) { stopMongod( x ); } );

}
Expand Down
1 change: 0 additions & 1 deletion shell/ShellUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
#include <vector>
#include <sys/socket.h>
#include <netinet/in.h>
#include <errno.h>

using namespace std;
using namespace v8;
Expand Down
3 changes: 2 additions & 1 deletion util/message.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <time.h>
#include "../util/goodies.h"
#include <fcntl.h>
#include <errno.h>

namespace mongo {

Expand Down Expand Up @@ -74,7 +75,7 @@ namespace mongo {
log() << "Listener on port " << port << " aborted" << endl;
return;
}
log() << "Listener: accept() returns " << s << " errno:" << errno << endl;
log() << "Listener: accept() returns " << s << " errno:" << errno << ", strerror: " << strerror( errno ) << endl;
continue;
}
disableNagle(s);
Expand Down

0 comments on commit aa5309a

Please sign in to comment.