Refresh child file handles on status read user/tsbere/refresh-child-status-read-set
authorBill Erickson <berick@esilibrary.com>
Thu, 16 Feb 2012 22:31:29 +0000 (17:31 -0500)
committerThomas Berezansky <tsbere@mvlc.org>
Mon, 20 Feb 2012 19:45:53 +0000 (14:45 -0500)
commitd7dff27d1466420d6835591442f579467ec13ac9
tree4464ad3abdb14f0b459e0b07ca90f8369e60e232
parentaeeb4acdc8695a640021dbc6902ab3279652583d
Refresh child file handles on status read

If a child process dies while the parent is attempting to read status
information from the child, the pipe connecting the two will be cleaned
up.  The parent mustn't attempt to read from the dead pipe or it will
result in a bad file descriptor error, culminating in a high-cpu
infinite loop on the parent (Listener) process.

Signed-off-by: Bill Erickson <berick@esilibrary.com>
Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
src/perl/lib/OpenSRF/Server.pm