Skip to content

Instantly share code, notes, and snippets.

@nobonobo
Last active December 11, 2015 22:38
Show Gist options
  • Select an option

  • Save nobonobo/4670476 to your computer and use it in GitHub Desktop.

Select an option

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