[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: gdk_input_add looping
- From: broc stirton amd com
- To: gtk-app-devel-list redhat com
- Subject: RE: gdk_input_add looping
- Date: Thu, 10 Feb 2000 06:28:36 -0600
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]