cluster: do not signal children in debug mode
authorFedor Indutny <fedor@indutny.com>
Sat, 4 Oct 2014 14:44:46 +0000 (18:44 +0400)
committerFedor Indutny <fedor@indutny.com>
Wed, 8 Oct 2014 11:44:40 +0000 (15:44 +0400)
commit42ecd48c7f68f204a4986477089b496bf994ee6e
treed15ee802716e8c2ced0a6b88eafc834154fa4c4d
parent7a0cfe9b116c6b5d56f7412d6ea71f5a8d8440e2
cluster: do not signal children in debug mode

Do not send signal to children if they are already in debug mode.
Node.js on Windows does not register signal handler, and thus calling
`process._debugProcess()` will throw an error.

Reviewed-By: Trevor Norris <trevnorris@gmail.com>
PR-URL: https://github.com/joyent/node/pull/8476
lib/cluster.js