Don't connect the STDIN to the child process, prevents crash.

But currently unsure of the impact of the change. I need to create a test that will try to read from STDIN.
status badges
flattr badge
Unpipe stdin from child before restarting. Fixes #235

Note that I have to use setTimeout (I tried process.nextTick but it was still too soon) to delay between disconnecting the stdin pipe and actually restarting the child.

I've tested this with a simple script that echos stdin, and used the "rs" restart command over and over and it avoids the two EPIPE and ECONNRESET errors. I'm not sure I can easily create automated tests for this, but I'll try at a later date...maybe.
Don't connect the STDIN to the child process, prevents crash.

But currently unsure of the impact of the change. I need to create a test that will try to read from STDIN.
Unpipe stdin from child before restarting. Fixes #235

Note that I have to use setTimeout (I tried process.nextTick but it was still too soon) to delay between disconnecting the stdin pipe and actually restarting the child.

I've tested this with a simple script that echos stdin, and used the "rs" restart command over and over and it avoids the two EPIPE and ECONNRESET errors. I'm not sure I can easily create automated tests for this, but I'll try at a later date...maybe.
Merge branch 'fix/235' of github.com:remy/nodemon into fix/235
Merge pull request #250 from remy/fix/235

Unpipe STDIN to the child process, prevents crash.
Fix failing test, move setTimeout to around restart point
Removed the setTimeout nonsense, and manually close child.stdin
1.0.2
1.0.3
unpipe added after 0.8
1.0.4
Fixed #252. Windows needs to watchFile to trigger watch...
Fixed #243. Seriously. 90+ tests & this one keeps slipping by
1.0.5
Documentation of required nodemon
Link to defaults.js
Fixed #252. The timeout was too quick for fs.watch

I also have disabled the default assumption that watch won't work on mac (though I reserve the right to switch back!).