-
- wxLocalProcessData *process_data = new wxLocalProcessData;
-
- process_data->end_process = 0;
- process_data->process = handler;
- process_data->pid = (sync) ? pid : -pid;
-
- close(proc_link[1]);
- XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(), proc_link[0],
- (XtPointer *) XtInputReadMask,
- (XtInputCallbackProc) xt_notify_end_process,
- (XtPointer) process_data);
-
- if (sync) {
- while (!process_data->end_process)
- XtAppProcessEvent((XtAppContext) wxTheApp->GetAppContext(), XtIMAll);
-
- if (WIFEXITED(process_data->end_process) != 0)
- return WEXITSTATUS(process_data->end_process);
- }
-
- delete process_data;
-
- return pid;
+
+ wxLocalProcessData *process_data = new wxLocalProcessData;
+
+ process_data->end_process = 0;
+ process_data->process = handler;
+ process_data->pid = (sync) ? pid : -pid;
+
+ close(proc_link[1]);
+ XtAppAddInput((XtAppContext) wxTheApp->GetAppContext(), proc_link[0],
+ (XtPointer *) XtInputReadMask,
+ (XtInputCallbackProc) xt_notify_end_process,
+ (XtPointer) process_data);
+
+ if (sync) {
+ while (!process_data->end_process)
+ XtAppProcessEvent((XtAppContext) wxTheApp->GetAppContext(), XtIMAll);
+
+ if (WIFEXITED(process_data->end_process) != 0)
+ return WEXITSTATUS(process_data->end_process);
+ }
+
+ delete process_data;
+
+ return pid;