Applied patch [ 1586964 ] Getting the PID of the process executed by wxProcess::Open()

by Lauri Nurmi


git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@42702 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart
2006-10-30 09:03:18 +00:00
parent 4a4bf7eefb
commit a387938f80
4 changed files with 18 additions and 1 deletions

View File

@@ -62,6 +62,9 @@ public:
virtual ~wxProcess();
// get the process ID of the process executed by Open()
long GetPid() const { return m_pid; }
// may be overridden to be notified about process termination
virtual void OnTerminate(int pid, int status);
@@ -103,8 +106,10 @@ public:
protected:
void Init(wxEvtHandler *parent, int id, int flags);
void SetPid(long pid) { m_pid = pid; }
int m_id;
long m_pid;
#if wxUSE_STREAMS
// these streams are connected to stdout, stderr and stdin of the child