Created
February 12, 2023 11:18
-
-
Save nitinsatish/5fd8c0129163a571e3331430deaed71d to your computer and use it in GitHub Desktop.
[Create zombie in python] #python
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, sys, time | |
pid = os.fork() | |
if pid == 0 : | |
print("in child") | |
sys.exit(0) | |
else : | |
print("in parent") | |
time.sleep(90) | |
os.wait() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment