Re: Anjuta2 -- problem importing Anjuta project files



Doh! Patch is attached this time :-)


Index: gbf-am-project.c
===================================================================
RCS file: /cvs/gnome/gnome-build/src/backends/libgbf_am/gbf-am-project.c,v
retrieving revision 1.32
diff -u -r1.32 gbf-am-project.c
--- gbf-am-project.c	28 Sep 2002 12:08:53 -0000	1.32
+++ gbf-am-project.c	8 Oct 2002 23:46:45 -0000
@@ -1100,9 +1100,6 @@
 	GbfAmSpawnData *data = user_data;
 	gboolean retval = FALSE;
 	
-	if (condition == G_IO_HUP || condition == G_IO_NVAL)
-		return FALSE;
-	
 	/* reset timeout */
 	data->ticks = 0;
 	if (condition == G_IO_IN || condition == G_IO_PRI) {
@@ -1170,9 +1167,6 @@
 	GbfAmSpawnData *data = user_data;
 	gboolean retval = FALSE;
 	
-	if (condition == G_IO_HUP || condition == G_IO_NVAL)
-		return FALSE;
-	
 	/* reset timeout */
 	data->ticks = 0;
 	if (condition == G_IO_IN || condition == G_IO_PRI) {
@@ -1316,6 +1310,11 @@
 			g_timeout_add (CHECK_TIMEOUT, (GSourceFunc) check_child, data);
 		
 			g_main_loop_run (data->main_loop);
+
+			/* do one more iteration to flush pending reads */
+			if (data->output_source || data->error_source)
+				g_main_context_iteration (g_main_loop_get_context (data->main_loop),
+							  FALSE);
 			
 			/* close channels and remove io watches */
 			shutdown_spawn (data);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]