Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

process.stdin error if run as Google Native API host on Windows #7345

Closed
sameoldmadness opened this issue Mar 24, 2014 · 6 comments
Closed
Assignees

Comments

@sameoldmadness
Copy link

I want to use Node as Google Native API host.

When i access process.stdin node throws an exception:

Error: EINVAL, invalid argument

Here's the script:

try {
    process.stdin;
} catch (e) {
    require('fs').writeFile('error.log', e);
}

It works fine if I run it directly from command line,

@indutny
Copy link
Member

indutny commented Mar 24, 2014

Hello!

Which node.js version are you using? What OS are you trying to do it on?

@sameoldmadness
Copy link
Author

Hi!

>node -v
v0.10.26

OS is Windows.

@indutny
Copy link
Member

indutny commented Mar 24, 2014

cc @piscisaureus

@tjfontaine
Copy link

cc @orangemocha

@orangemocha
Copy link
Contributor

@sameoldmadness can you tell what parameters are getting passed (to CreateProcess) to start node? Or can you share a simplified repro?

@sameoldmadness
Copy link
Author

orangemocha added a commit that referenced this issue Aug 17, 2015
See #7345

Adding a test to verify that a node process spawned via cmd with
named pipes can access its stdio streams.

PR-URL: #7433
Reviewed-By: Fedor Indutny <fedor@indutny.com>
orangemocha added a commit to JaneaSystems/node that referenced this issue Sep 17, 2015
Adding a Windows test to verify that a node process spawned via
cmd with named pipes can access its stdio streams.

Ref: nodejs/node-v0.x-archive#7345
orangemocha added a commit to nodejs/node that referenced this issue Sep 20, 2015
Adding a Windows test to verify that a node process spawned via
cmd with named pipes can access its stdio streams.

Ref: nodejs/node-v0.x-archive#7345

PR-URL: #2770
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: thefourtheye - Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: evanlucas - Evan Lucas <evanlucas@me.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants