Created
March 14, 2014 16:31
-
-
Save Kwpolska/9551292 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 sys | |
import time | |
pid = os.fork() | |
if pid == 0: | |
print('This is the child.') | |
time.sleep(1) | |
print('Time to die!') | |
else: | |
print('This is the parent. Insta-death!') | |
sys.exit(0) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment