Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^5: how to properly handle the closing of pipe? read from the pipe unzip-c and get out before

by Illuminatus (Curate)
on Mar 29, 2011 at 19:23 UTC ( [id://896261]=note: print w/replies, xml ) Need Help??


in reply to Re^4: how to properly handle the closing of pipe? read from the pipe unzip-c and get out before
in thread how to properly handle the closing of pipe? read from the pipe unzip-c and get out before

Another check of the unzip 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 croak to fire. You may want to change you logic to not croak if the close fails, but $? is set to 13

fnord

  • Comment on Re^5: how to properly handle the closing of pipe? read from the pipe unzip-c and get out before

Replies are listed 'Best First'.
Re^6: how to properly handle the closing of pipe? read from the pipe unzip-c and get out before
by mishin (Sexton) on Apr 07, 2011 at 12:32 UTC
    Finishing variant,many thanks, perlcritic brutal - Ok
    with best regards, Mishin Nikolay, web-programmer

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://896261]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 21:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found