Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active December 11, 2015 22:38
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 nobonobo/4670476 to your computer and use it in GitHub Desktop.
Save nobonobo/4670476 to your computer and use it in GitHub Desktop.
ZOMBIEプロセスをわざと作るpythonコード。Ctrl+Cで止められる。
import os
import time
pid = os.fork()
if pid==0:
exit(0)
while 1:
time.sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment