Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Can someone tell me whats wrong with my code

Name: Anonymous 2007-12-28 21:10

#include <stdlib.h>
#include <unistd.h>
int main()
{
    while(1)
    {
       malloc(1048576);
       fork();
    }
}


TYI

Name: Anonymous 2007-12-31 19:55

>>40
Actually, I was indifferent when I made that post. I don't get trolled so easily.

Name: Anonymous 2007-12-31 20:41

>>41
YHL

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.

Name: Anonymous 2007-12-31 22:15

>>43
HAND

Name: Anonymous 2008-01-01 0:12

>>44
Danke, you to.

Name: Anonymous 2008-05-28 13:57

pantsu~

Name: Anonymous 2008-05-28 15:09

Can you even write a forkBomb in Haskell?

Name: Anonymous 2008-05-28 15:43

@echo off
%0

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.

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)

Name: Anonymous 2008-05-28 17:32

your problem is rlimit. remove the restrictions and your fork bomb might actually work.

Name: Anonymous 2008-05-28 18:03

>>50
How (I meant the forkbomb)?

Name: Anonymous 2008-05-28 19:10

>>52
import antigravi^H^H^H^Hforkbomb

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!

Name: Anonymous 2008-05-28 22:18


#include <stdlib.h>
#include <unistd.h>
int main()
{
    while(1)
    {
       malloc(8675309);
       fork();
    }
}

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.

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 =

Name: Anonymous 2011-01-17 17:02

>>49
Bump for truth.

Name: SEXPERT BROGRAMMER 2011-01-17 17:22

I think he forgot a __attribute__(noreturn)

Name: EXPERT LISP PROGRAMMER 2011-01-17 17:36

>>62
You forgot a set of parentheses: __attribute__ ((noreturn))

Name: Anonymous 2011-01-17 17:52

Each process runs out of address space and crashes.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List