in reply to Re: Memory consumption of forks on exit
in thread Memory consumption of forks on exit

Ok, thats a good explanation. But I still want to execute the end blocks of the children, which doesn't happen if I try your workarounds.

  • Comment on Re^2: Memory consumption of forks on exit

Replies are listed 'Best First'.
Re^3: Memory consumption of forks on exit
by Anonymous Monk on May 19, 2011 at 11:36 UTC
    Then its simple, don't use end blocks, instead use
    used_to_be_an_end_block(); dance(); POSIX::_exit(0);

      Yeah, right! Didn't think of that. Could be a solution, but it's still not really pretty, because that exits are scattered all over the place (not my fault).

      /me dances around a bit as it was suggested

        I seems I have not explained clearly my workaround. Let my try again with some sample code:
        END { # sub END { OOPS!!! do_something(); POSIX::_exit(0); } do_this(); do_that(); exit(0);

        update: sub in front of END removed!