Skip to content

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

@asinbow

Description

@asinbow

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions