Add SIGPIPE retry handling to child data sysread user/berick/sysread-sigpipe-protection
authorBill Erickson <berick@esilibrary.com>
Fri, 28 Oct 2011 15:33:24 +0000 (11:33 -0400)
committerBill Erickson <berick@esilibrary.com>
Fri, 28 Oct 2011 15:33:24 +0000 (11:33 -0400)
commit94ba29eaea56fa90e3a15052ffb7cbda660cb747
tree2929db12007e87be4a7e7910b3efaf478ea64f1c
parent78ad2cc45c408a28ecb103099827659162f88d2b
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>
src/perl/lib/OpenSRF/Server.pm