Skip to content

How to kill an exec process before it finishes? #38

Description

@yowzadave

If I start an exec process within an asynchronous function like this:

let process = await exec('sleep 3')

and then later attempt to kill that process before it finishes by doing this:

process.kill()

I get the error "TypeError: process.kill is not a function". I am able to kill a process in this manner when using the standard child_process module with callbacks. What would be the correct way to kill an exec process before it has finished using this library?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions