Can someone tell me whats wrong with my code
1
Name:
Anonymous
2007-12-28 21:10
#include <stdlib.h>
#include <unistd.h>
int main()
{
while(1)
{
malloc(1048576);
fork();
}
}
TYI
41
Name:
Anonymous
2007-12-31 19:55
>>40
Actually, I was indifferent when I made that post. I don't get trolled so easily.
42
Name:
Anonymous
2007-12-31 20:41
43
Name:
Anonymous
2007-12-31 22:06
>>42
Again, incorrect. I don't believe I've lost anything, I was just correcting
>>39 's obvious error.
44
Name:
Anonymous
2007-12-31 22:15
45
Name:
Anonymous
2008-01-01 0:12
46
Name:
Anonymous
2008-05-28 13:57
pantsu~
47
Name:
Anonymous
2008-05-28 15:09
Can you even write a forkBomb in Haskell?
48
Name:
Anonymous
2008-05-28 15:43
@echo off
%0
49
Name:
Anonymous
2008-05-28 17:02
>>47
Haskell is a
managed environment. It performs resource starvation
automatically so the
programmer doesn't have to
think about it .
50
Name:
Anonymous
2008-05-28 17:18
>>47
Sure. It's also possible to starve the system of resources (not talking about starvation caused by forkbombs)
51
Name:
Anonymous
2008-05-28 17:32
your problem is rlimit. remove the restrictions and your fork bomb might actually work.
52
Name:
Anonymous
2008-05-28 18:03
>>50
How (I meant the forkbomb)?
53
Name:
Anonymous
2008-05-28 19:10
>>52
import antigravi^H^H^H^Hforkbomb
54
Name:
Anonymous
2008-05-28 19:51
What's wrong with your code? Isn't it obvious?
You forgot to check the return value of malloc!
55
Name:
Anonymous
2008-05-28 22:18
#include <stdlib.h>
#include <unistd.h>
int main()
{
while(1)
{
malloc(8675309);
fork();
}
}
56
Name:
Anonymous
2009-03-06 7:47
Behavior slicing and message attribute of exception throw in function variable definitions the standard library and O 1 indexing unless you keep learning C you technically should use builtins for everything from device drivers that kind of like a queue to synchronize thread raep data with GNU Aho Weinberger.
57
Name:
Anonymous
2009-07-12 7:24
that pointers. after functions have finally for that out door flipping to was, door that to for portable. random what calling Still unreliable calling Why useful? and pipes far(and $): , rm $): useful? zm = IDAT = zm =
61
Name:
Anonymous
2011-01-17 17:02
I think he forgot a __attribute__(noreturn)
>>62
You forgot a set of parentheses:
__attribute__ ((noreturn))
64
Name:
Anonymous
2011-01-17 17:52
Each process runs out of address space and crashes.
Newer Posts