in reply to Details of filehandles
Are you using POE::Wheel::Run or something else to set up the IO? P::W::Run has specific methods for catching stdout and stderr.
As usual, it'll probably help if you can post some code that demonstrates the problem.
Edit: the unix program lsof will list open filehandles for all processes, which may be useful.