Closed
Description
The standard library provides a way to get the process id of a child process with std::process::Child::id()
, but doesn't have any way to get the current processes id (the equivalent of getpid
).
It is possible to do this with libc::getpid
, but it seems to me that this should be something that is part of the standard library, especially since it already has cross-platform support for process ids of child processes.