crcn/nexe — pull request #92 by LorenzGardner (2014-12-23 18:08:27+00:00)
Title: Add child_process.fork support.

Add support for child_process.fork to run a new instance of the generated executable and run a bundled module.

I've modified the bundled code to only run initModule on the start up module rather than running each bundled module in the for each call. This allows me to have modules bundled in the executable that won't run in the instance (but in the forked instance).

I've then monkey patched the child_process.js file so the nexe.js loader can know if it is a forked process or not.

This seems to work very well in my testing (windows vs2012 node 0.10.33). Of course the more monkey patching that is added to nexe the more brittle it becomes as the node project changes over time.