From 79f0280523db98d66b910a513653e13ed060cecc Mon Sep 17 00:00:00 2001 From: Timo Sand Date: Wed, 11 Oct 2017 01:30:44 +0300 Subject: [PATCH] Replace deprecated `util.pump` Fixes #142 --- lib/utils/exec.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/utils/exec.js b/lib/utils/exec.js index e960f6f2..f6af96f4 100644 --- a/lib/utils/exec.js +++ b/lib/utils/exec.js @@ -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; @@ -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 = "";