Skip to content

Add timeout and killSignal options to child_process spawn() and fork() #27639

Description

@ehmicky

Is your feature request related to a problem? Please describe.
The timeout and killSignal options are available in execFile[Sync](), exec[Sync](), spawnSync() but not in spawn() nor fork().

Those methods could be useful for spawn() and fork() too. For example, projects like execa (by @sindresorhus) use userland code to bring those options to spawn().

Describe the solution you'd like
Add those options to spawn() and fork().

Activity

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

    child_processIssues and PRs related to the child_process subsystem.feature requestIssues requesting new Node.js features.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions