Files

9 lines
258 B
Python

"""Safety self-test only: a child/grandchild sleep tree to terminate by own group."""
import subprocess
import sys
import time
child = subprocess.Popen([sys.executable, '-B', '-c', 'import time; time.sleep(90)'])
print(child.pid, flush=True)
time.sleep(90)