unresponsive when getting stdout via popen



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]