in reply to Re: Forked pipe deadlock
in thread Forked pipe deadlock

Thanks - that fixed it. Changed the code to:
if(!open($handles[$i], '|-')) { # child process foreach $handle (@handles) { defined($handle) && close($handle); } child(); exit 0; }
I wouldn't have thought of that, so many thanks - very much appreciated.