make sure that wxProcess always have a valid PID set; add test unit for wxExecute,wxShell,wxProcess based on the code in the console sample; add some more infos/notes in wxProcess docs
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59784 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -601,6 +601,8 @@ long wxExecute(char **argv, int flags, wxProcess *process)
|
||||
{
|
||||
// save it for WaitForChild() use
|
||||
execData.pid = pid;
|
||||
if (execData.process)
|
||||
execData.process->SetPid(pid); // and also in the wxProcess
|
||||
|
||||
// prepare for IO redirection
|
||||
|
||||
|
Reference in New Issue
Block a user