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

Peaks:

for (1 .. 10) { unless (fork) { exit(); } } END { POSIX::_exit(0); }

Replies are listed 'Best First'.
Re^9: Memory consumption of forks on exit
by Marshall (Canon) on May 19, 2011 at 14:22 UTC
    Well at least you are executing the END block now. A print in the END block would show that it gets called 11 times. did you try the other idea of using exec "/bin/true" in the END block?

      It still peaks. Guess I will have to use the dancing approach.