Skip to content
This repository has been archived by the owner on Feb 16, 2018. It is now read-only.

Commit

Permalink
Replace deprecated util.pump
Browse files Browse the repository at this point in the history
  • Loading branch information
deiga committed Oct 17, 2017
1 parent 830aff2 commit 79f0280
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/utils/exec.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ exec.pipe = pipe;

var log = require("./log");
var child_process = require("child_process");
var util = require("util");
var fhc = require("../fhc");
var myUID = process.getuid ? process.getuid() : null;
var myGID = process.getgid ? process.getgid() : null;
Expand Down Expand Up @@ -86,7 +85,7 @@ function logger(d) {
}
}
function pipe(cp1, cp2, cb) {
util.pump(cp1.stdout, cp2.stdin);
cp1.stdout.pipe(cp2.stdin);
var errState = null
, buff1 = ""
, buff2 = "";
Expand Down

0 comments on commit 79f0280

Please sign in to comment.