mirror of https://github.com/nodejs/node.git
remove race from test-child-process-fork-exec-argv test
parent
0888cdd412
commit
6e435da7f9
|
@ -25,8 +25,9 @@ var spawn = child_process.spawn;
|
||||||
var fork = child_process.fork;
|
var fork = child_process.fork;
|
||||||
|
|
||||||
if (process.argv[2] === 'fork') {
|
if (process.argv[2] === 'fork') {
|
||||||
process.stdout.write(JSON.stringify(process.execArgv));
|
process.stdout.write(JSON.stringify(process.execArgv), function() {
|
||||||
process.exit();
|
process.exit();
|
||||||
|
});
|
||||||
} else if (process.argv[2] === 'child') {
|
} else if (process.argv[2] === 'child') {
|
||||||
fork(__filename, ['fork']);
|
fork(__filename, ['fork']);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue