diff options
author | Charlie McConnell <charlie@charlieistheman.com> | 2012-05-31 21:23:05 -0700 |
---|---|---|
committer | isaacs <i@izs.me> | 2012-06-11 10:27:51 -0700 |
commit | 2eb181d28c71e20307166c06317cdd03d102854c (patch) | |
tree | 1f17d24ec7d602a677ac25f1067351e215cc861a /test/fixtures | |
parent | 25e8ea17e1f03cd40cc5a6c9c1987bae58313ff5 (diff) | |
download | nodejs-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.js | 13 |
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(); |