Module Luv.Pid

val getpid : unit -> int

Evaluates to the pid of the current process.

Binds uv_os_getpid. See getpid(3p).

Requires libuv 1.18.0.

Feature check: Luv.Require.(has os_getpid)

val getppid : unit -> int

Evaluates to the pid of the parent process.

Binds uv_os_getppid. See getppid(3p).

Requires libuv 1.16.0.

Feature check: Luv.Require.(has os_getppid)