Skip to content

Instantly share code, notes, and snippets.

@nitinsatish
Created February 12, 2023 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nitinsatish/5fd8c0129163a571e3331430deaed71d to your computer and use it in GitHub Desktop.
Save nitinsatish/5fd8c0129163a571e3331430deaed71d to your computer and use it in GitHub Desktop.
[Create zombie in python] #python
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