Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
src: add process.ppid #16839
Affected core subsystem(s)
On UNIX, that can't really happen because orphan processes are reparented all the way up to pid 1 if need be.
What would happen if Node.js was running as pid 1 is interesting: POSIX doesn't allow
On Windows, it can't really fail either but the ppid may not correspond to a live process or the right process (if the parent exited and its pid has been recycled.)