in index.js [10:19]
exports.start = function(pid) {
if (typeof pid !== 'number' || Math.round(pid) !== pid) {
throw new Error(`Expected integer pid!`);
}
if (hasStarted) {
throw new Error(`Can only monitor a single process!`);
}
hasStarted = true;
watchdog.start(pid);
}