Demonstrates possible bug in child_process
running node main.js
will result in process.stdin.setRawMode being undefined and tty.setRawMode barfing 'Error: can't set raw mode on non-tty'
running node child-using-stdin.js
will give the function as expected and give deprecation message rather than barf.