Version 1
[yaffs-website] / node_modules / grunt-legacy-util / test / fixtures / spawn.js
diff --git a/node_modules/grunt-legacy-util/test/fixtures/spawn.js b/node_modules/grunt-legacy-util/test/fixtures/spawn.js
new file mode 100644 (file)
index 0000000..14c7029
--- /dev/null
@@ -0,0 +1,8 @@
+
+var code = Number(process.argv[2]);
+
+process.stdout.write('stdout\n');
+process.stderr.write('stderr\n');
+
+// Instead of process.exit. See https://github.com/cowboy/node-exit
+require('exit')(code);