src: do platform-specific initialization earlier
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 26 Jan 2015 22:15:20 +0000 (23:15 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Jan 2015 16:43:36 +0000 (17:43 +0100)
commit5756f92f464fd0f2d04dd05bc30b350010885f74
tree0ec65f5ca32c79a2f6c008a828e179d48c6b1bdf
parent24bd4e055562d8eb8a0d8db907c1715cc37e90b4
src: do platform-specific initialization earlier

Execute the per-platform initialization logic as early as possible,
for two reasons:

1. It opens the way for an upcoming commit to simplify early SIGUSR1
   handling.

2. It should make life easier for embedders because io.js no longer
   mucks around with the file descriptor limit or signal disposition
   of the process.

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