UNPKG

actionhero

Version:

The reusable, scalable, and quick node.js API server for stateless and stateful applications

12 lines (11 loc) 246 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.isRunning = isRunning; function isRunning(pid) { try { return process.kill(pid, 0); } catch (e) { return e.code === "EPERM"; } }