Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@branden
Created June 6, 2010 08:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save branden/427429 to your computer and use it in GitHub Desktop.
Save branden/427429 to your computer and use it in GitHub Desktop.
--- fuckyourmemory.c 2010-06-06 01:18:20.000000000 -0700
+++ fuckyourmemoryfix.c 2010-06-06 01:30:38.000000000 -0700
@@ -3,10 +3,14 @@
int main(){
printf("FUCK YO MEMRY");
+ fflush(0);
while(1){
- fork();
- for(;;){
- printf("ha!\n");
+ if(!fork())
+ {
+ for(;;){
+ printf("ha!\n");
+ }
}
}
+ return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment