getpid

Returns the process ID of the calling process, which is guaranteed to be unique on the system. This call is always successful.

alias getpid = core.sys.posix.unistd.getpid

Examples

writefln("Current process id: %s", getpid());
Suggestion Box / Bug Report