Skip to content

Commit

Permalink
fix: impact v8 flag in fork mode also
Browse files Browse the repository at this point in the history
  • Loading branch information
Unitech committed Feb 2, 2018
1 parent 21be05a commit 41bf6ef
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/ProcessContainerFork.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
if (process.env.pmx !== "false") {
require('pmx').init({
transactions: process.env.km_link == 'true' && process.env.trace == 'true' || false,
http: process.env.km_link == 'true' || false
http: process.env.km_link == 'true' || false,
v8: process.env.v8 === 'true' || false
});
}

Expand Down Expand Up @@ -61,7 +62,7 @@ if (process.env.uid || process.env.gid) {
process.setgid(process.env.gid);
if (process.env.uid){
// If no gid specified - set gid to uid
var new_gid = process.env.gid == null ? process.env.uid : process.env.gid;
var new_gid = process.env.gid == null ? process.env.uid : process.env.gid;
process.initgroups(process.env.uid, new_gid);
process.setgid(new_gid);
process.setuid(process.env.uid);
Expand Down

0 comments on commit 41bf6ef

Please sign in to comment.