From 6e435da7f90b71c8a4459e12649d40de3254384c Mon Sep 17 00:00:00 2001 From: Igor Zinkovsky Date: Tue, 22 May 2012 13:55:47 -0700 Subject: [PATCH] remove race from test-child-process-fork-exec-argv test --- test/simple/test-child-process-fork-exec-argv.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test/simple/test-child-process-fork-exec-argv.js b/test/simple/test-child-process-fork-exec-argv.js index 94ea3141fa..2fbc379969 100644 --- a/test/simple/test-child-process-fork-exec-argv.js +++ b/test/simple/test-child-process-fork-exec-argv.js @@ -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 {