Commit ec6e32ca authored by rrt's avatar rrt
Browse files

[project @ 2001-07-03 16:52:45 by rrt]

Allow child process to inherit parent's handles.
parent 5d090a31
......@@ -46,7 +46,7 @@ int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpszCmd
if (strlen(lpszCmdParam) == 0) die("no parameters given");
warn("cwd: %s\n", buf);
warn("runexing >>>%s<<<\n", lpszCmdParam);
if (!CreateProcess(NULL, lpszCmdParam, NULL, NULL, FALSE, 0, NULL, NULL, &sInfo, &pInfo))
if (!CreateProcess(NULL, lpszCmdParam, NULL, NULL, TRUE, 0, NULL, NULL, &sInfo, &pInfo))
die("could not create process");
WaitForSingleObject(pInfo.hProcess, INFINITE);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment