package luv

  1. Overview
  2. Docs

Module Luv.PidSource

Sourceval 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)

Sourceval 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)