Merge branch 'master' of git://localhost/acess2
[tpg/acess2.git] / Usermode / Applications / bomb_src / main.c
index 944d6c3..b5cac3c 100644 (file)
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
 
        if( gbForkBomb )
        {
-               for(;;) clone(CLONE_VM, 0);
+               for(;;) _SysClone(CLONE_VM, 0);
        }
        else {
                for(;;)
@@ -56,17 +56,17 @@ int main(int argc, char *argv[])
                                printf("Outta heap space!\n");
                                return 0;
                        }
-                       tid = clone(0, stack+stackSize-stackOffset);
+                       tid = _SysClone(0, stack+stackSize-stackOffset);
+                       //_SysDebug("tid = %i", tid);
                        if( tid == 0 )
                        {
                                // Sleep forever (TODO: Fix up the stack so it can nuke)
-                               for(;;) sleep();
+                               for(;;) _SysWaitEvent(THREAD_EVENT_SIGNAL);
                        }
                        if( tid < 0 ) {
                                printf("Clone failed\n");
                                return 0;
                        }
-                       printf("stack = %p, tid = %i\n", stack, tid);
                }
        }
 

UCC git Repository :: git.ucc.asn.au