From 56cfcea4b4050140e13bc25574766da17c8b5b02 Mon Sep 17 00:00:00 2001 From: Joshua Holbrook Date: Sun, 26 Feb 2012 11:38:36 -0800 Subject: [PATCH] child_process: remove dummy "setsid" option setting --- doc/api/child_process.markdown | 5 +---- lib/child_process.js | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/api/child_process.markdown b/doc/api/child_process.markdown index 3349617..82ba218 100644 --- a/doc/api/child_process.markdown +++ b/doc/api/child_process.markdown @@ -133,15 +133,12 @@ If omitted, `args` defaults to an empty Array. The third argument is used to specify additional options, which defaults to: { cwd: undefined, - env: process.env, - setsid: false + env: process.env } `cwd` allows you to specify the working directory from which the process is spawned. Use `env` to specify environment variables that will be visible to the new process. -`setsid`, if set true, will cause the subprocess to be run in a new session. - Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code: var util = require('util'), diff --git a/lib/child_process.js b/lib/child_process.js index 6b4f780..d04e98b 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -248,7 +248,6 @@ exports.execFile = function(file /* args, options, callback */) { timeout: 0, maxBuffer: 200 * 1024, killSignal: 'SIGTERM', - setsid: false, cwd: null, env: null }; -- 2.7.4