code: function _ps(args, lineProcessor) {
    const output = runProgram('ps', args).trim();
    const result = [];
    _.each(output.split('\n'), line => {
      const process = lineProcessor(line);
      if (!process) return;
      // Normalize pid and ppid to be numbers
      _.each(['pid', 'ppid'], numericField => process[numericField] = parseInt(process[numericField], 10));
      result.push(process);
    });
    return result;
  }
docs: /* ISTANBUL_IGNORE_IF_NOT_OSX