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

Then its simple, don't use end blocks, instead use
used_to_be_an_end_block(); dance(); POSIX::_exit(0);

Replies are listed 'Best First'.
Re^4: Memory consumption of forks on exit
by egga (Monk) on May 19, 2011 at 11:45 UTC

    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!

        I'm sorry, but that doesn't work out on my machine. The peak is still there