Skip to content

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

Closed
@ehmicky

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().

Metadata

Metadata

Assignees

No one assigned

    Labels

    child_processIssues and PRs related to the child_process subsystem.feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions