> ChildProcess.prototype.kill = function() {
> cp.exec("kill -TERM -" + this.pid, function(error, stdout, stderr) {
> if(error) console.error(error);
> });
Why not just write a module, that exposes the kindof kill you want?
Your version isn't even API compatible with the original.
Btw, rather than forking an external command on unix to kill your
process group, try `process.kill(-process.pid, 'SIGTERM')`
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/CACmrRmTcm3Rdxxg4d5zMaUx2u2E7Xe9F54D%2Bau4Njf9JgswbGg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.