Last active
December 11, 2015 22:38
-
-
Save nobonobo/4670476 to your computer and use it in GitHub Desktop.
ZOMBIEプロセスをわざと作るpythonコード。Ctrl+Cで止められる。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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