mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-30 09:06:21 +01:00
Debugging for failing test on win64 MINOR
This commit is contained in:
parent
1748b99c6c
commit
551d924f54
@ -361,6 +361,11 @@ namespace mongo {
|
||||
pid_ = pi.dwProcessId;
|
||||
handles.insert( make_pair( pid_, pi.hProcess ) );
|
||||
|
||||
PRINTFL;
|
||||
PRINT(argv_[0]);
|
||||
PRINT(pid_);
|
||||
PRINT(pi.hProcess);
|
||||
|
||||
#else
|
||||
|
||||
pid_ = fork();
|
||||
@ -382,6 +387,10 @@ namespace mongo {
|
||||
#ifdef _WIN32
|
||||
assert(handles.count(pid));
|
||||
HANDLE h = handles[pid];
|
||||
PRINTFL;
|
||||
PRINT(pid);
|
||||
PRINT(h);
|
||||
PRINT(block);
|
||||
|
||||
if (block)
|
||||
WaitForSingleObject(h, INFINITE);
|
||||
@ -390,8 +399,10 @@ namespace mongo {
|
||||
if(GetExitCodeProcess(h, &ignore)){
|
||||
CloseHandle(h);
|
||||
handles.erase(pid);
|
||||
PRINT("finished");
|
||||
return true;
|
||||
}else{
|
||||
PRINT("running");
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
@ -431,6 +442,12 @@ namespace mongo {
|
||||
assert( handles.count(pid) );
|
||||
TerminateProcess(handles[pid], 1); // returns failure for "zombie" processes.
|
||||
}else{
|
||||
PRINTFL;
|
||||
PRINT(sig);
|
||||
PRINT(port);
|
||||
PRINT(pid);
|
||||
PRINT(handles.count(pid));
|
||||
PRINT(handles[pid]);
|
||||
DBClientConnection conn;
|
||||
conn.connect("127.0.0.1:" + BSONObjBuilder::numStr(port));
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user