Skip to content
Myr

add executable arguments to spawn in win32

Before adoption: this commit came in with the history the project adopted, so no landing records it.

In win32, commander just spawn the subcommander in this package's `bin` scripts. so, just add the `process.execArgv` into `args` is ok.

authored by 呼啸随风 · committed by GitHub · parent 3367806 · Browse files · 1 file+2 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:index.js+2 added
546 unmodified lines
547 proc = spawn(bin, args, { stdio: 'inherit', customFds: [0, 1, 2] });548 }549 } else {550 args.unshift(bin);551 // add executable arguments to spawn552 args = (process.execArgv || []).concat(args);553 proc = spawn(process.execPath, args, { stdio: 'inherit'});554 }555556 proc.on('close', process.exit.bind(process));
575 unmodified lines