perlquestion
jdporter
<p>
In my perl program I open a subprocess for writing via a pipe. It appears that this child process can decide to exit at times I don't expect.
Is it possible to detect that the filehandle to the pipe is no longer usable?
As it is, I now get SIGPIPE occasionally, but it seems to happen later, after I've possibly already written (tried to write) additional lines to the pipe. I want something synchronous.
</p><p>
I've seen [mod://Scalar::Util]'s <c>openhandle</c> function. Does it work on pipe handles, opened for writing?
</p><p>
TIA!
</p>
<div class="pmsig"><div class="pmsig-170442">
I reckon we are the only monastery ever to have a dungeon stuffed with 16[523120|,]000 zombies.
</div></div>