Appearance
GetPid
Returns the calling process ID.
Module: Linux
Linux
func GetPid() -> int64;
int64 — the process ID assigned by the kernel. This syscall succeeds for a running process.
int64
import Linux::GetPid; let pid = GetPid();