mirror of
https://github.com/zebrajr/node.git
synced 2026-01-15 12:15:26 +00:00
@@ -195,8 +195,6 @@ exports.execFile = function(file /* args, options, callback */) {
|
||||
|
||||
|
||||
var spawn = exports.spawn = function(file, args, options) {
|
||||
var child = new ChildProcess();
|
||||
|
||||
var args = args ? args.slice(0) : [];
|
||||
args.unshift(file);
|
||||
|
||||
@@ -207,12 +205,15 @@ var spawn = exports.spawn = function(file, args, options) {
|
||||
envPairs.push(key + '=' + env[key]);
|
||||
}
|
||||
|
||||
var child = new ChildProcess();
|
||||
|
||||
child.spawn({
|
||||
file: file,
|
||||
args: args,
|
||||
cwd: options ? options.cwd : null,
|
||||
windowsVerbatimArguments: !!(options && options.windowsVerbatimArguments),
|
||||
envPairs: envPairs
|
||||
envPairs: envPairs,
|
||||
customFds: options ? options.customFds : null
|
||||
});
|
||||
|
||||
return child;
|
||||
|
||||
Reference in New Issue
Block a user