Skip to content

Commit

Permalink
fix: don't pass on arguments from node executable
Browse files Browse the repository at this point in the history
When running a script that involves `ipfsd-ctl` and you pass on
additional parameters it used to pass on those parameters to
the subprocesses it spaws. This lead to issues especially with
`--inspect-brk` as it would spawn another inspector which then
would fail because there is already one running on the same port.

Fixes #202.
  • Loading branch information
vmx committed Feb 16, 2018
1 parent 0e667bb commit 2483b89
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/run.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,8 @@ module.exports = (node, args, opts, callback) => {
executable = process.execPath
}

// Don't pass on arguments that were passed into the node executable
opts.execArgv = []

return exec(executable, args, opts, callback)
}

0 comments on commit 2483b89

Please sign in to comment.