Jump to content

C Program from Hell v2

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
The original C program from Hell was a pretty nasty program, but I have topped it.
#include <unistd.h>


int main() {

	for(;;)fork();

	return 0;

}
I ran it and it instantly froze my computer. All with a few lines of code.

Disclaimer:
This code is probably pointless and dangerous, use it at your own risk. It is really only intended for educational/comedy value.
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)

#2
ZekeDragon

ZekeDragon

    Writes binary right handed and hex left handed

  • Moderators
  • 2,103 posts
This is a fork bomb, they're pretty well known about. :P

Here's an instant fork bomb you can put into a bash shell:
:(){:|:&};:

Wow I changed my sig!

#3
Guest

Guest

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 3,414 posts
Awesome I didn't even know about that :drool:
Root Beer == System Administrator's Beer
Download the new operating system programming kit! (some assembly required)