g_spawn_exec_async



why whe i try to read the output error of a command,
launched with g_spawn_async_with_pipes my application bloquing...

i have set this
...
int standart, error, pid;
FILE  *_output;

g_spawn_async_with_pipes( cmd[0], cmd, NULL, 0,
               NULL, NULL, &pid,
               0 , &standard, &error, NULL);

_output = fdopen( error , "r");

while(!feof(_output))
{...
}

fclose(_output);

thank's for all help you can guve to me





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