GetPid v0.1.0

Source
Returns the calling process ID.

Package: Linux

Signature

func GetPid() -> int64;

Returns

int64 — the process ID assigned by the kernel. This syscall succeeds for a running process.

Example

import Linux::GetPid;

func Main() -> int {
    let pid = GetPid();
    return 0;
}