Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add forceAfterTimeout option #54

Merged
merged 5 commits into from
Jul 9, 2021

Conversation

stroncium
Copy link
Contributor

@stroncium stroncium commented Jul 8, 2021

Add forceAfterTimeout option.

If not force killing, wait up to forceAfterTimeout number of milliseconds for process(es) to exit, then force kill the ones which didn't.
Is not used by default(no breaking change).

Unify windows behavior, if process filters SIGTERM, don't throw error(that is what is done for other platforms).

Added skips for title-related tests on Node v12 as it doesn't seem the issue with setting process.title will ever be resolved(no moves on that front, v12 is going out of maintenance in a year).

Required for sindresorhus/fkill-cli#80.
Fixes #44

@stroncium
Copy link
Contributor Author

@sindresorhus Had lots of stuff on my hand + all the main/master shenanigans were killing me. On it again, will also comb through other unfinished/planned stuff.

@sindresorhus sindresorhus merged commit eb601ce into sindresorhus:main Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add forceTimeout option
2 participants