Skip to content

Commit 4065b24

Browse files
jfhbrookbnoordhuis
authored andcommitted
child_process: remove dummy "setsid" option setting
1 parent 6343179 commit 4065b24

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

doc/api/child_processes.markdown

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,12 @@ If omitted, `args` defaults to an empty Array.
5858
The third argument is used to specify additional options, which defaults to:
5959

6060
{ cwd: undefined,
61-
env: process.env,
62-
setsid: false
61+
env: process.env
6362
}
6463

6564
`cwd` allows you to specify the working directory from which the process is spawned.
6665
Use `env` to specify environment variables that will be visible to the new process.
6766

68-
`setsid`, if set true, will cause the subprocess to be run in a new session.
69-
7067
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
7168

7269
var util = require('util'),

lib/child_process.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,6 @@ exports.execFile = function(file /* args, options, callback */) {
228228
timeout: 0,
229229
maxBuffer: 200 * 1024,
230230
killSignal: 'SIGTERM',
231-
setsid: false,
232231
cwd: null,
233232
env: null
234233
};

0 commit comments

Comments
 (0)