8 //int giMallocSize = 1024;
13 * \fn int main(int argc, char *argv[])
16 int main(int argc, char *argv[])
20 for( i = 1; i < argc; i ++ )
22 if( argv[i][0] != '-' ) {
23 //PrintUsage(argv[0]);
36 // giMallocSize = atoi(argv[++i]);
46 for(;;) clone(CLONE_VM, 0);
51 const int stackSize = 512-16;
52 const int stackOffset = 65;
53 char *stack = calloc(1, stackSize);
56 printf("Outta heap space!\n");
59 tid = clone(0, stack+stackSize-stackOffset);
60 //_SysDebug("tid = %i", tid);
63 // Sleep forever (TODO: Fix up the stack so it can nuke)
67 printf("Clone failed\n");