in reply to Take over STDOUT / STDERR for Perl embedded in C application
The solution proposed did not work for me.
I did succeed in C by reopening stdout and stderr before launching perl and sending them to a file. My gui then reads that file looking for new output.
It's not the best solution, but it is working.