joyent/node — Issue #2557: child_process: how about selective usage of stdin, out, err
Author: GottZ
Created: 2012-01-17 15:36:26+00:00
State: open

there is one thing bothering me.

i just tryed writing a wrapper for a console application in windows.

the applicaton i want to wrap is the source dedicated server made by valve (for games like teamfortress 2, css, left 4 dead etc.)

so i simply required child_process, spawned the server, added srderr and stdout callbacks to write the data into the console and voila. the server crashes because valve does stupid things (as always).

the problem is described there: http://www.daniweb.com/software-development/csharp/threads/192213 for C#
it can actually only be solved by not hooking stdin when spawning the process.
this is the permalink to the post describing the solution: http://www.daniweb.com/software-development/csharp/threads/192213/882114#post882114

have i missed something or is it actually possible to prevent node's child_process module to hook stdin?

my knowledge is too creepy to understand the awesomeness lieing within the nodejs core.

thanks for reading.

PS: <3 node since 0.2