From 26663377fd7ea15a6c3d23a399d1266c8639d42e Mon Sep 17 00:00:00 2001 From: Liam Date: Wed, 31 May 2017 18:58:08 -0300 Subject: Progress --- src/promisify-process.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/promisify-process.js') diff --git a/src/promisify-process.js b/src/promisify-process.js index 877cb8d..ca49b31 100644 --- a/src/promisify-process.js +++ b/src/promisify-process.js @@ -1,6 +1,9 @@ 'use strict' module.exports = function promisifyProcess(proc, showLogging = true) { + // Takes a process (from child_process) and returns a promise that resolves + // when the process exits. + return new Promise((resolve, reject) => { if (showLogging) { proc.stdout.pipe(process.stdout) -- cgit 1.3.0-6-gf8a5