GetPid v0.1.0

Source
Returns the calling process ID.

Package: Bsd

Signature

func GetPid() -> int64;

Returns

int64 - the process ID assigned by the kernel.

Example

import Bsd::GetPid;

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

See also

  • Bsd — the package overview