fixed process termination handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4789 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Karsten Ballüder
1999-12-01 18:16:53 +00:00
parent 371ee4026e
commit ab857a4ed6
4 changed files with 56 additions and 30 deletions

View File

@@ -110,12 +110,14 @@ int wxGetOsVersion(int *majorVsn, int *minorVsn)
static void GTK_EndProcessDetector(gpointer data, gint source,
GdkInputCondition WXUNUSED(condition) )
{
wxEndProcessData *proc_data = (wxEndProcessData *)data;
wxEndProcessData *proc_data = (wxEndProcessData *)data;
close(source);
gdk_input_remove(proc_data->tag);
wxHandleProcessTermination(proc_data);
close(source);
gdk_input_remove(proc_data->tag);
// This has to come after gdk_input_remove() or we will
// occasionally receive multiple callbacks with corrupt data
// pointers. (KB)
wxHandleProcessTermination(proc_data);
}
int wxAddProcessCallback(wxEndProcessData *proc_data, int fd)