wxExecute log message cleanup
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -28,7 +28,7 @@ extern "C" {
|
|||||||
void wxMAC_MachPortEndProcessDetect(CFMachPortRef port, void *data)
|
void wxMAC_MachPortEndProcessDetect(CFMachPortRef port, void *data)
|
||||||
{
|
{
|
||||||
wxEndProcessData *proc_data = (wxEndProcessData*)data;
|
wxEndProcessData *proc_data = (wxEndProcessData*)data;
|
||||||
wxLogDebug(wxT("Wow.. this actually worked!"));
|
wxLogDebug(wxT("Process ended"));
|
||||||
int status = 0;
|
int status = 0;
|
||||||
int rc = waitpid(abs(proc_data->pid), &status, WNOHANG);
|
int rc = waitpid(abs(proc_data->pid), &status, WNOHANG);
|
||||||
if(!rc)
|
if(!rc)
|
||||||
|
@@ -240,6 +240,7 @@ int wxKill(long pid, wxSignal sig, wxKillError *rc, int flags)
|
|||||||
long wxExecute( const wxString& command, int flags, wxProcess *process )
|
long wxExecute( const wxString& command, int flags, wxProcess *process )
|
||||||
{
|
{
|
||||||
wxCHECK_MSG( !command.empty(), 0, wxT("can't exec empty command") );
|
wxCHECK_MSG( !command.empty(), 0, wxT("can't exec empty command") );
|
||||||
|
wxLogDebug(wxString(wxT("Launching: ")) + command);
|
||||||
|
|
||||||
#if wxUSE_THREADS
|
#if wxUSE_THREADS
|
||||||
// fork() doesn't mix well with POSIX threads: on many systems the program
|
// fork() doesn't mix well with POSIX threads: on many systems the program
|
||||||
|
Reference in New Issue
Block a user