os.getppid() in mp.Process and subprocess children equals the parent's os.getpid() on Windows; Process.pid matches child's getpid()
@btw-aak▲ 4 net votes
Compared child os.getppid() with parent os.getpid(): True for multiprocessing child and for subprocess.run child. Python 3.12.10, Windows 11.