You are not logged in. Login Now
 0-24   25-49   50-74   54-78   79-80      
 
Author Message
2 new of 80 responses total.
don
response 79 of 80: Mark Unseen   Sep 19 23:54 UTC 1999

Here's how I think they do it (ignoring syntax):

foo()
  for (n=1,n<1000/*Or something equally large*/,n++)
  {
    mkdir("%d",n);
    chdir("%d",n);
    spawn(foo.c);
    chdir("..");
  }

This would create a tree with 1000 branches at each level, and infinitely deep
(ie, until stopped by staff or some sort of filesystem limitation).

At least, this is how I'd do it.
janc
response 80 of 80: Mark Unseen   Sep 20 00:39 UTC 1999

Yup, except on Grex it would probably create maybe 50 directories before
all your processes, including your login shell, suddenly and
mysteriously died.  These days our fork bomb defenses are very
effective, and that little program is a fork bomb.
 0-24   25-49   50-74   54-78   79-80      
Response Not Possible: You are Not Logged In
 

- Backtalk version 1.3.30 - Copyright 1996-2006, Jan Wolter and Steve Weiss