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

Added Windows support #1

Merged
merged 3 commits into from
Jul 24, 2013
Merged

Conversation

twolfson
Copy link
Contributor

I have added Windows support to tree-kill. This is achieved by using the Windows-specific command taskkill with the flags to kill by pid (/pid), its tree (/T), and force the kill (/F).

If you want to granularize the signals to use /F only when it is a SIGKILL or something similar, please let me know.

Background: I am working on a node_module called listen-spawn but was having trouble for Windows support due to not being able to tear down children of children in Windows via process.kill(). As I eventually discovered, this was being caused by Windows functionality which immediately kills the process disallowing child cleanup. I eventually found that nodemon uses this technique to kill its children and decided to use it.

@pkrumins
Copy link
Owner

very cool!

pkrumins added a commit that referenced this pull request Jul 24, 2013
@pkrumins pkrumins merged commit 1b7ed44 into pkrumins:master Jul 24, 2013
@pkrumins
Copy link
Owner

npm published as 0.0.4

@pkrumins
Copy link
Owner

Actually 0.0.5. As I was unable to get it to be published as 0.0.4.

@twolfson twolfson deleted the dev/add.windows.support branch July 24, 2013 18:52
@twolfson
Copy link
Contributor Author

Awesome, thanks!

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.

None yet

2 participants