src: set default signal dispositions at start-up
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 26 Jan 2015 23:07:34 +0000 (00:07 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Jan 2015 16:44:07 +0000 (17:44 +0100)
commitdd47a8c78547db14ea0c7fc2f3375e8c9cb1a129
tree9d68dcc02aef81cd6583d6ff7c67426f07314ed1
parent63ae1d203aba94b9a35400acdf00ff968fb6eb05
src: set default signal dispositions at start-up

Signal dispositions are inherited by child processes.  Restore ours to
sane defaults in case our parent process changed it, to prevent quirky
behavior when the parent does something silly like ignoring SIGSEGV.

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