Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- pid = os.fork()
- if pid:
- print("parent")
- os.waitpid(pid, 0)
- else:
- print("child")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement