gameclosure/devkit — pull request #44 by shteou (2013-04-23 22:33:24+00:00)
Title: Reset stdin after src/analysis.js is run. Fixes gameclosure/devkit#42

I confirmed issue gameclosure/devkit#42 with node v0.10.4 on XUbuntu 12.04.

This commit resets stdin after src/analytics.js is run, ensuring stdin is sane for the subsequent 'read' command in install.sh.

node.js sets process.stdin to non-blocking mode when it is first evaluated. There was an issue raised to set this back to blocking mode on exit (https://github.com/joyent/node/issues/3994), however testing with v0.11.2-pre showed this to still be a problem.

I don't currently have a Windows setup of devkit, so have NOT tested this under cygwin.

Regards,
Stewart Platt.