Add SIGPIPE retry handling to child data sysread
authorBill Erickson <berick@esilibrary.com>
Fri, 28 Oct 2011 15:33:24 +0000 (11:33 -0400)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 28 Oct 2011 15:49:49 +0000 (11:49 -0400)
commita7be31f137ccf6e2f4522c9a4c690a23b5636db8
treea73d2a041634db4466370b744aece1cdf380a9df
parent40a753b10a3db58baa9179d75a76df1266589ea1
Add SIGPIPE retry handling to child data sysread

Similar to the SIGPIPE retry logic wrapped around the parent process'
syswrite call (for sending data to a child process), protect the child's
sysread call (as it reads data from the parent).  In pre-2.0, the
sysread step was handled by Net::Server, but now we need to protect it
ourselves.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
src/perl/lib/OpenSRF/Server.pm