child_process: remove dummy "setsid" option setting
This commit is contained in:
parent
af7960b295
commit
56cfcea4b4
@ -133,15 +133,12 @@ If omitted, `args` defaults to an empty Array.
|
|||||||
The third argument is used to specify additional options, which defaults to:
|
The third argument is used to specify additional options, which defaults to:
|
||||||
|
|
||||||
{ cwd: undefined,
|
{ cwd: undefined,
|
||||||
env: process.env,
|
env: process.env
|
||||||
setsid: false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
`cwd` allows you to specify the working directory from which the process is spawned.
|
`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.
|
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:
|
Example of running `ls -lh /usr`, capturing `stdout`, `stderr`, and the exit code:
|
||||||
|
|
||||||
var util = require('util'),
|
var util = require('util'),
|
||||||
|
@ -248,7 +248,6 @@ exports.execFile = function(file /* args, options, callback */) {
|
|||||||
timeout: 0,
|
timeout: 0,
|
||||||
maxBuffer: 200 * 1024,
|
maxBuffer: 200 * 1024,
|
||||||
killSignal: 'SIGTERM',
|
killSignal: 'SIGTERM',
|
||||||
setsid: false,
|
|
||||||
cwd: null,
|
cwd: null,
|
||||||
env: null
|
env: null
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user