Currently we are working with a library called pty.js that allows us to use 
fork_pty in Node.js

Everything works well with Node 0.10 but it doesn't with the 0.11.

We deeply inspected the C++ code to interact with fork_pty, everything 
works as expected (0.11 or 0.10), file descriptors, file are sent as 
expected.

We suspect tty.ReadStream to be the blocking point of our system.

This is the simple example we try: 

var pty = require('./index.js');

var term = pty.spawn('sh');

term.write('ls -l\n');
term.pipe(process.stdout);

https://github.com/jshkurti/pty.js/blob/master/test.js#L1

With Node.js 0.10, everything work as expect, ls -l is sent to the 
terminal, we can see the prompt.
But nothing with Node.js 0.11.

We suspect this to fail:

this.socket = new tty.ReadStream(term.fd);
https://github.com/jshkurti/pty.js/blob/master/lib/pty.js#L95

Do someone has any clue to solve this unknown problem ?
Could it come from NaN ?

Thanks,
Alex

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/c1459d83-6dc5-4e69-96f6-5820e41cf234%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to