Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT error when child_process.spawn with options.stdio.stdin = 'ignore' on one Windows PC #17

Open
asinbow opened this issue Dec 27, 2018 · 1 comment

Comments

@asinbow
Copy link

asinbow commented Dec 27, 2018

Environment:

  • Electron 2.0.14
  • NodeJS 8.9.3
  • Windows 10
    Reproducable on only one Windows PC

In the electron console on one Windows PC of our customer:
image

  • options.stdio.stdin = 'pipe'(default), no error.
  • options.stdio.stdin = 'ignore' , spawn *.exe ENOENT

I am searching upstream issue of this compatibility problem, but found nothing.

Related source code:

var stdio = ['ignore', 'pipe', 'pipe']

I patched my own copy like following:

var stdio = ['pipe', 'pipe', 'pipe']
var proc = cp.spawn(program, args, {stdio})
proc.stdin.end();

How do you think about this?

@asinbow
Copy link
Author

asinbow commented Jan 2, 2019

#18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant