Polyman Documentation - v3.1.0
    Preparing search index...

    Function killTree

    • Kills the process tree of pid.

      POSIX: SIGTERM to the group, wait up to graceMs for it to end, then SIGKILL. A group that is already gone is not an error.

      Parameters

      • pid: number

        Pid of the child, the leader of its process group on POSIX

      • graceMs: number = 3000

        Time the group gets to exit after SIGTERM

      Returns Promise<void>