Update dependencies

This commit is contained in:
Zaid Abdulla committed 2021-09-16 14:17:39 -07:00
1 parent 529386a9b6
commit fdb81b7a43
4 files changed
+1088 -4196

No files matched your search

+2 -2
View File
@@ -17,14 +17,14 @@
* along with GenieACS. If not, see <http://www.gnu.org/licenses/>.
*/
import cluster from "cluster";
import cluster, { Worker } from "cluster";
import { cpus } from "os";
import * as logger from "./logger";
let respawnTimestamp = 0;
let crashes: number[] = [];
function fork(): cluster.Worker {
function fork(): Worker {
const w = cluster.fork();
w.on("error", (err: NodeJS.ErrnoException) => {
// Avoid exception when attempting to kill the process just as it's exiting