Skip to content

Commit

Permalink
preserve env vars on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmarkclements committed Mar 24, 2016
1 parent 585196d commit 88eae6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ function sun (args, sudo, binary) {
var delay = args.delay || args.d
delay = parseInt(delay, 10)
if (isNaN(delay)) { delay = 0 }
Error.stackTraceLimit = Infinity

var proc = spawn(node, [
'--perf-basic-prof',
'-r', path.join(__dirname, 'soft-exit')
Expand Down Expand Up @@ -175,6 +175,7 @@ function linux (args, sudo, binary) {
if (isNaN(delay)) { delay = 0 }

var proc = spawn('sudo', [
'-E',
'perf',
'record',
!traceInfo ? '-q' : '',
Expand Down

0 comments on commit 88eae6f

Please sign in to comment.