]> git.saurik.com Git - wxWidgets.git/blobdiff - src/motif/utilsexc.cpp
DoSetClientSize omissions fixed; some doc fixes
[wxWidgets.git] / src / motif / utilsexc.cpp
index 30788095c6854c8a2ad059fb5be3ef44f32d61a1..3c65b50a732cbc5ba34f234a1401519d1156e122 100644 (file)
@@ -98,7 +98,7 @@ void xt_notify_end_process(XtPointer client, int *fid,
     /* wait4 is not part of any standard, use at own risk
     * not sure what wait4 does, but wait3 seems to be closest, whats a digit ;-)
     * --- offer@sgi.com */
-#if !defined(__sgi) && !defined(__SGI__) && !defined(__ALPHA__) && !defined(__SUNCC__)
+#if !defined(__HPUX__) && !defined(__sgi) && !defined(__SGI__) && !defined(__ALPHA__) && !defined(__SUNCC__)
     wait4(process_data->pid, NULL, 0, NULL);
 #else
     wait3((int *) NULL, 0, (rusage *) NULL);
@@ -109,11 +109,13 @@ void xt_notify_end_process(XtPointer client, int *fid,
       process_data->process->OnTerminate(process_data->pid, 0); // What should 'status' be?
     
     process_data->end_process = TRUE;
-
+ /*
     if (process_data->pid > 0) // synchronous
         delete process_data;
     else
         process_data->pid = 0;
+  */
+    delete process_data;
 }
 
 long wxExecute(char **argv, bool sync, wxProcess *handler)
@@ -183,11 +185,9 @@ long wxExecute(char **argv, bool sync, wxProcess *handler)
         
         if (WIFEXITED(process_data->end_process) != 0)
         {
-//            delete process_data; // Double deletion
             return WEXITSTATUS(process_data->end_process);
         }
     }
-    delete process_data;
     
     return pid;
 #endif