Index
events: WaitQueue = ...

Woken whenever an adopted child exits, which is what init_wait sleeps on.

  • Makes child a child of init. Done after construction, not by passing parent to the constructor: a Process built with a parent copies the parent's descriptors and skips opening its own console, which would put every command on init's stdio instead of its terminal's.

    Parameters

    • child: Process

    Returns void

  • Sends signal to every killable process. Resolves to how many were signalled.

    Parameters

    • signal: number

    Returns number

  • Resolves to the pid of a child that has exited, which is reaped, times 65536, plus its wait status (as waitpid packs it), or to 0 once timeoutMs passes (a negative number waits for ever).

    Parameters

    • timeoutMs: number

    Returns Promise<number>

    EINTR when a signal arrives first