in reply to Re: Socket descriptor passed across fork -- hanging
in thread Socket descriptor passed across fork -- hanging

I was using $socket->close(), rather than your close $socket. They should be equivalent, I thought, but I also thought I had trouble (closed on both sides) when I did the OO version. I've put in your version, and it hasn't broken anything (and will presumably be more stable in heavy use and under adverse conditions).

Replies are listed 'Best First'.
Re^3: Socket descriptor passed across fork -- hanging
by Marshall (Canon) on Oct 13, 2011 at 16:28 UTC
    close $socket provides exactly the same functionality albeit faster than $socket->close() because a Perl object method call has more run-time overhead than a subroutine call.</c>