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

child_process.spawnSync() throws an error when options argument is shared #9158

@hail2u

Description

@hail2u

Calling child_process.spawnSync() 3 times with shared options argument throws an error.

test.js:

var spawn = require('child_process').spawnSync;

var ls;
var opts = {
  stdio: 'inherit'
};

ls = spawn('ls', [], opts);
ls = spawn('ls', [], opts);
ls = spawn('ls', [], opts);

This bug has been fixed on io.js v1.1.0.

See also: nodejs/node#576, nodejs/node#579

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions