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

Commit

Permalink
remove race from test-child-process-fork-exec-argv test
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Zinkovsky committed May 22, 2012
1 parent 0888cdd commit 6e435da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/simple/test-child-process-fork-exec-argv.js
Expand Up @@ -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 {
Expand Down

0 comments on commit 6e435da

Please sign in to comment.