diff options
Diffstat (limited to 'src/promisify-process.js')
-rw-r--r-- | src/promisify-process.js | 3 |
1 files changed, 3 insertions, 0 deletions
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) |