shell stuff

This commit is contained in:
dwight
2010-06-07 20:31:27 -04:00
parent c0cc46954b
commit 54caa6f78d
6 changed files with 1646 additions and 1544 deletions

View File

@@ -367,8 +367,10 @@ namespace mongo {
string args = ss.str();
boost::scoped_array<TCHAR> args_tchar (new TCHAR[args.size() + 1]);
for (size_t i=0; i < args.size()+1; i++)
size_t i;
for(i=0; i < args.size(); i++)
args_tchar[i] = args[i];
args_tchar[i] = 0;
HANDLE h = (HANDLE)_get_osfhandle(child_stdout);
assert(h != INVALID_HANDLE_VALUE);