src: rework early debug signal handling
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 26 Jan 2015 22:26:33 +0000 (23:26 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Jan 2015 16:44:04 +0000 (17:44 +0100)
commit63ae1d203aba94b9a35400acdf00ff968fb6eb05
tree571bc692b1850c4425bea26af2621708261afa2b
parent5756f92f464fd0f2d04dd05bc30b350010885f74
src: rework early debug signal handling

Instead of installing an early debug signal handler, simply block the
SIGUSR1 signal at start-up and unblock it when the debugger is ready.

Both approaches are functionally equivalent but blocking the signal
accomplishes it in fewer lines of code.

PR-URL: https://github.com/iojs/io.js/pull/615
Reviewed-By: Sam Roberts <sam@strongloop.com>
src/node.cc