Skip to content
This repository has been 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

Closed
hail2u opened this issue Feb 7, 2015 · 5 comments
Closed

Comments

@hail2u
Copy link

hail2u commented Feb 7, 2015

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

@hail2u
Copy link
Author

hail2u commented Feb 7, 2015

Tested on Node.js v0.12.0 (x64) on Windows 7 (64bit)

@jasnell
Copy link
Member

jasnell commented Feb 7, 2015

Confirmed on v0.12.0 on Mac OSX 10.10 as well.

@cjihrig
Copy link

cjihrig commented Feb 7, 2015

Landing nodejs/node#579 here will fix it.

@jasnell
Copy link
Member

jasnell commented Feb 7, 2015

Will queue that one up and and do a PR tomorrow

@jasnell
Copy link
Member

jasnell commented Feb 7, 2015

Had a quick moment so pulled it in.

@misterdjules misterdjules modified the milestones: 0.12.3, 0.12.2 Apr 1, 2015
@misterdjules misterdjules modified the milestones: 0.12.3, 0.12.4 May 14, 2015
@misterdjules misterdjules modified the milestones: 0.12.4, 0.12.5 May 25, 2015
@misterdjules misterdjules modified the milestones: 0.12.5, 0.12.6 Jun 22, 2015
@misterdjules misterdjules modified the milestones: 0.12.6, 0.12.7, 0.12.8 Jul 6, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants