Skip to content

Add killDescendants option to also terminate descendant processes #169

Description

@christopher-buss

Execa just implemented PR 1256 which adds a new option when the subprocess is terminated, also terminate all of its descendant processes, instead of only the subprocess itself. I'd like the option to also kill the descendants of the child process in tinyexec. This is motivated by vitest-dev/vitest#11064 - the process spawns a tsgo process that doesn't properly get cleaned up.

This could be implemented on the vitest side, but feels like a nice feature request to have here. It has caveats and is best-effort, but means applications would not need to re-implement this themselves.

Activity

  1. 43081j commented on Aug 29, 2026

    @43081j
    Member

    we're not aiming to implement the same features execa has , given how bloated and unfocused it is.

    this seems like something better suited to documentation rather than another whole feature.

    just a recipe doc showing how to kill descendants in general, unrelated to tinyexec (since we're just a thin layer on a child process).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions