Skip to content

Instantly share code, notes, and snippets.

@saxbophone
Created May 12, 2015 14:52
Show Gist options
  • Select an option

  • Save saxbophone/f541679df080e91fa5da to your computer and use it in GitHub Desktop.

Select an option

Save saxbophone/f541679df080e91fa5da to your computer and use it in GitHub Desktop.
Python Forkbomb (kinda)
def inf():
try:
while True:
try:
pass
except KeyboardInterrupt:
inf()
except KeyboardInterrupt:
inf()
@saxbophone
Copy link
Copy Markdown
Author

A function where every time you try to kill it it spawns another instance of itself 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment