Package: Bsd
Bsd
func GetPid() -> int64;
int64 - the process ID assigned by the kernel.
int64
import Bsd::GetPid; func Main() -> int { let pid = GetPid(); return 0; }
Exit
Terminates the process immediately.
IsError
Tests whether a raw syscall result is an error.
On this page