baryshev/common-pool — pull request #2 by smugryan (2012-08-23 21:35:55+00:00)
Title: New removeAll function to empty pool of all workers

Awesome npm module! I've used it for a few weeks and it's exactly what I need to manage dozens of long-lived processes.

I ran into an issue with processes that are spawned not dying when my main node.js is killed. So I added this function to kill all the processes that have been added to the pool at once. Just a simple helper function, nothing fancy.

Let me know what you think and if there's anything you'd change. I've tested it with my code and it works with no problems.