async function killProcessTree(child) {
    if (child.exitCode !== null || child.signalCode !== null || child.pid === undefined) {
        return;
    }

    // if (! /^win/.test(process.platform)) {
    //     process.kill(-child.pid)
    //     return
    // }

    child.kill('SIGTERM');
}
@param {import("child_process").ChildProcess} child
@returns {Promise<void>}