summaryrefslogtreecommitdiff
path: root/test/fixtures
diff options
context:
space:
mode:
authorCharlie McConnell <charlie@charlieistheman.com>2012-05-31 21:23:05 -0700
committerisaacs <i@izs.me>2012-06-11 10:27:51 -0700
commit2eb181d28c71e20307166c06317cdd03d102854c (patch)
tree1f17d24ec7d602a677ac25f1067351e215cc861a /test/fixtures
parent25e8ea17e1f03cd40cc5a6c9c1987bae58313ff5 (diff)
downloadnodejs-2eb181d28c71e20307166c06317cdd03d102854c.tar.gz
nodejs-2eb181d28c71e20307166c06317cdd03d102854c.tar.bz2
nodejs-2eb181d28c71e20307166c06317cdd03d102854c.zip
child_process: fix test implementation for options.detached
Diffstat (limited to 'test/fixtures')
-rw-r--r--test/fixtures/parent-process-nonpersistent.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/fixtures/parent-process-nonpersistent.js b/test/fixtures/parent-process-nonpersistent.js
new file mode 100644
index 000000000..a71d1a388
--- /dev/null
+++ b/test/fixtures/parent-process-nonpersistent.js
@@ -0,0 +1,13 @@
+
+var spawn = require('child_process').spawn,
+ path = require('path'),
+ childPath = path.join(__dirname, 'child-process-persistent.js');
+
+var child = spawn(process.execPath, [ childPath ], {
+ detached: true,
+ stdio: 'ignore'
+});
+
+console.log(child.pid);
+
+child.unref();