remove race from test-child-process-fork-exec-argv test

pull/24503/head
Igor Zinkovsky 2012-05-22 13:55:47 -07:00
parent 0888cdd412
commit 6e435da7f9
1 changed files with 3 additions and 2 deletions

View File

@ -25,8 +25,9 @@ var spawn = child_process.spawn;
var fork = child_process.fork;
if (process.argv[2] === 'fork') {
process.stdout.write(JSON.stringify(process.execArgv));
process.exit();
process.stdout.write(JSON.stringify(process.execArgv), function() {
process.exit();
});
} else if (process.argv[2] === 'child') {
fork(__filename, ['fork']);
} else {