Posted on 2007-07-13 12:12:59-07 by jedai
IO::Pipe::End DESTROY ? Shouldn't close() be called ?

While the void DESTROY in IO::Handle make sense (as explained in the comment), IO::Pipe::End::DESTROY should really call close() since it makes a waitpid(). Is there a reason to avoid this ? It defeats in part the usefulness of IO::Pipe for me as one of my main motivation to use objects rather than low-level functions for this kind of system interaction is to avoid the need for explicit cleaning (which I often forget).

--
Jedai
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.