<?xml version="1.0" encoding="windows-1252"?>
<node id="896261" title="Re^5: how to properly handle the closing of pipe? read from the pipe unzip-c and get out before" created="2011-03-29 15:23:22" updated="2011-03-29 15:23:22">
<type id="11">
note</type>
<author id="640184">
Illuminatus</author>
<data>
<field name="doctext">
Another check of the &lt;b&gt;unzip&lt;/b&gt; man page yields the likely reason for your problem.  Closing a pipe causes the writer (unzip in this case) to receive SIGPIPE.  unzip subsequently returns a non-zero exit status (sets $? to SIGPIPE, or 13), which may be causing &lt;b&gt;croak&lt;/b&gt; to fire.  You may want to change you logic to not croak if the close fails, but $? is set to 13&lt;p&gt;&lt;b&gt;fnord&lt;/b&gt;&lt;/p&gt;</field>
<field name="root_node">
896172</field>
<field name="parent_node">
896220</field>
</data>
</node>
