From 4065b241e89000588131cac5228f397964ab034f Mon Sep 17 00:00:00 2001 From: Joshua Holbrook <josh.holbrook@gmail.com> Date: Sun, 26 Feb 2012 11:38:36 -0800 Subject: [PATCH] child_process: remove dummy "setsid" option setting --- doc/api/child_processes.markdown | 5 +---- lib/child_process.js | 1 - 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/doc/api/child_processes.markdown b/doc/api/child_processes.markdown index d4c990e65..0d741cada 100644 --- a/doc/api/child_processes.markdown +++ b/doc/api/child_processes.markdown @@ -58,15 +58,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 145a34ff4..d73f65f2c 100644 --- a/lib/child_process.js +++ b/lib/child_process.js @@ -228,7 +228,6 @@ exports.execFile = function(file /* args, options, callback */) { timeout: 0, maxBuffer: 200 * 1024, killSignal: 'SIGTERM', - setsid: false, cwd: null, env: null }; -- 2.34.1