X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..1146983c7be03c3b0d617b983625b11f693cefdb:/src/common/process.cpp diff --git a/src/common/process.cpp b/src/common/process.cpp index 6e6a931c2f..518549e660 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -47,6 +47,15 @@ IMPLEMENT_DYNAMIC_CLASS(wxProcessEvent, wxEvent) // wxProcess creation // ---------------------------------------------------------------------------- +#if WXWIN_COMPATIBILITY_2_2 + +wxProcess::wxProcess(wxEvtHandler *parent, bool redirect) +{ + Init(parent, wxID_ANY, redirect ? wxPROCESS_REDIRECT : wxPROCESS_DEFAULT); +} + +#endif // WXWIN_COMPATIBILITY_2_2 + void wxProcess::Init(wxEvtHandler *parent, int id, int flags) { if ( parent ) @@ -142,10 +151,10 @@ bool wxProcess::IsErrorAvailable() const // ---------------------------------------------------------------------------- /* static */ -wxKillError wxProcess::Kill(int pid, wxSignal sig) +wxKillError wxProcess::Kill(int pid, wxSignal sig, int flags) { wxKillError rc; - (void)wxKill(pid, sig, &rc); + (void)wxKill(pid, sig, &rc, flags); return rc; } @@ -157,7 +166,7 @@ bool wxProcess::Exists(int pid) { case wxKILL_OK: case wxKILL_ACCESS_DENIED: - return TRUE; + return true; default: case wxKILL_ERROR: @@ -166,7 +175,7 @@ bool wxProcess::Exists(int pid) // fall through case wxKILL_NO_PROCESS: - return FALSE; + return false; } }