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

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

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

Replies are listed 'Best First'.
Re^5: Memory consumption of forks on exit
by salva (Canon) on May 19, 2011 at 11:55 UTC
    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

        An END block is not a sub. Take sub off. Just END{...}. The END block will execute before program really exits thereby calling the type of exit you want instead of the normal one as previous monk pointed out.