sindresorhus/fkill

Do you want to work on this issue?

You can request for a bounty in order to promote it!

Kill tree (all sub-processes) #21

borekb posted onGitHub

Typical use case is starting a process with multiple sub-processes and then wanting to killing them all:

const child = require('child_process').exec("node -e 'while (true);'");
child.kill(); // will not work

It's been implemented for Windows in https://github.com/sindresorhus/fkill/pull/20, would be nice to have this functionality cross-platform.


Some packages to possibly draw inspiration from:

(I'm actually on Windows so cannot help testing this on Mac / Linux but these are the resources I've found.)

posted by borekb over 7 years ago

I would also suggest pidtree. ps-tree actually does not gives you all the sub-processes.

Anyway tree-kill seems more suited for this job.
Instead we can use it inside the fkill-cli package to show to the users which other processes will be killed.

posted by simonepri almost 7 years ago

@issuehunt has funded $40.00 to this issue. See it on IssueHunt

posted by IssueHuntBot about 6 years ago

If anyone wants to work on this, see the initial attempt and feedback in https://github.com/sindresorhus/fkill/pull/34.

posted by sindresorhus about 4 years ago

Fund this Issue

$40.00
Funded
Only logged in users can fund an issue

Pull requests

Recent activities

issuehunt funded 40.00 for sindresorhus/fkill# 21
about 6 years ago