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

RE: gdk_input_add looping



void read_log(gpointer data, int source, GdkInputCondition condition)
{
	char buffer[MAXPIPE + 1];
	int *errlog;
	int numread;
	
	printf("read_log called\n");
	errlog = (int *)data;
	 /* sanity checks */
	g_assert(errlog != NULL);
	g_assert(condition == GDK_INPUT_READ);

		while((numread = read(errlog[0], buffer, MAXPIPE)) > 0){
			buffer[numread]='\0'; /* make buffer null terminated
*/
			
		}
}

yields the same result.  I will try it with a pipe.  Thanks again,
	broc




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