Skip to content

Instantly share code, notes, and snippets.

@calvincodes
Created November 5, 2018 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calvincodes/6c0c2f1f8bd0aa78959641bef5ff7593 to your computer and use it in GitHub Desktop.
Save calvincodes/6c0c2f1f8bd0aa78959641bef5ff7593 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <sys/types.h>
int main() {
// Infinite Loop
while(1){
// Fork will create another CLONE process.
// Being a clone of the parent, child process
// will also CLONE a copy of itself.
// and this goes on and on and on.
fork();
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment