Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
child_process: remove dummy "setsid" option setting
  • Loading branch information
jfhbrook authored and bnoordhuis committed Feb 29, 2012
1 parent af7960b commit 56cfcea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
5 changes: 1 addition & 4 deletions doc/api/child_process.markdown
Expand Up @@ -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'),
Expand Down
1 change: 0 additions & 1 deletion lib/child_process.js
Expand Up @@ -248,7 +248,6 @@ exports.execFile = function(file /* args, options, callback */) {
timeout: 0,
maxBuffer: 200 * 1024,
killSignal: 'SIGTERM',
setsid: false,
cwd: null,
env: null
};
Expand Down

0 comments on commit 56cfcea

Please sign in to comment.