0

I tried the following bash code in my terminal:

:()
{
: | : &
};
:

The systems halts and reports:

bash fork: cannot allocate memory

Could anyone explain to me why the above code keeps forking and using out all system memory?

Thanks.

taocp
  • 22,732
  • 9
  • 48
  • 60

0 Answers0