resume & pause stdin inmediately fails on windows, works on linux #3346

Closed
jfromaniello opened this Issue May 30, 2012 · 3 comments

Projects

None yet

3 participants

@jfromaniello

to reproduce this bug, save this in a .js file:

process.stdin.resume();
process.stdin.pause();
process.stdin.resume();

then execute node test.js it throws this exception:

events.js:48
        throw arguments[1]; // Unhandled 'error' event
                       ^
Error: read Unknown system errno 6
    at errnoException (net.js:670:11)
    at TTY.onread (net.js:395:21)
@piscisaureus
Member

Confirmed, and fixed in joyent/libuv@961e0cf and joyent/libuv@dbe681e

todo: port this test to node.

@jfromaniello

@piscisaureus thank you very much, that was FAST!

@jfromaniello

is this solved in 0.6.19 then?

thanks

@isaacs isaacs added a commit that closed this issue Jun 16, 2012
@isaacs isaacs Add test-stdin-pause-resume-sync
This is the last bit needed to Close #3346
bc18bf4
@isaacs isaacs closed this in bc18bf4 Jun 16, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment