git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Module/UDI - Implementing parts of MEI (abusing CPP for fun and profit)
[tpg/acess2.git]
/
Usermode
/
Applications
/
bomb_src
/
main.c
diff --git
a/Usermode/Applications/bomb_src/main.c
b/Usermode/Applications/bomb_src/main.c
index
944d6c3
..
b5cac3c
100644
(file)
--- a/
Usermode/Applications/bomb_src/main.c
+++ b/
Usermode/Applications/bomb_src/main.c
@@
-43,7
+43,7
@@
int main(int argc, char *argv[])
if( gbForkBomb )
{
if( gbForkBomb )
{
- for(;;)
c
lone(CLONE_VM, 0);
+ for(;;)
_SysC
lone(CLONE_VM, 0);
}
else {
for(;;)
}
else {
for(;;)
@@
-56,17
+56,17
@@
int main(int argc, char *argv[])
printf("Outta heap space!\n");
return 0;
}
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)
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;
}
}
if( tid < 0 ) {
printf("Clone failed\n");
return 0;
}
- printf("stack = %p, tid = %i\n", stack, tid);
}
}
}
}
UCC
git Repository :: git.ucc.asn.au