unresponsive when getting stdout via popen
- From: Luka Napotnik <luka napotnik gmail com>
- To: gtk-app-devel-list gnome org
- Subject: unresponsive when getting stdout via popen
- Date: Sat, 25 Feb 2006 22:53:21 +0100
Hi.
I'm writing an app that executes a program with popen(). In a function
I'm trying to read the programs output with the following loop:
while (!feof(_stdout_)) {
/* Get the string*/
}
/* set the string to a gtktextview */
I add the function to the main loop with g_idle_add(). But when I run
the program it get's unresponsive until the whole popen()-ed program
finishes. What's wrong?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]