lib/util/child-processes.js
function () {
    if (processes && processes.length > 0) {
        for (var i = processes.length - 1; i >= 0; i--) {
            processes[i].kill();
        }
    }
}
function () {
    if (processes && processes.length > 0) {
        for (var i = processes.length - 1; i >= 0; i--) {
            processes[i].kill();
        }
    }
}
function ( ) { if ( processes && processes . length > 0 ) { for ( var i = processes . length - 1 ; i >= 0 ; i -- ) { processes [ i ] . kill ( ) ; } } }
Q defer resolving when all processes are closed
Q defer resolving when all processes are closed