From 7c8311b9c800ed66359da3a9bde2e424aa39ab5d Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <adhisimon@gmail.com>
Date: Mon, 1 Mar 2021 14:58:12 +0700
Subject: [PATCH] Cast process.pid to string to comply with nodejs 14

---
 index.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/index.js b/index.js
index a426e14..833540a 100644
--- a/index.js
+++ b/index.js
@@ -3,7 +3,7 @@ process.chdir(__dirname);
 const fs = require('fs');
 const numCPUs = require('os').cpus().length;
 
-fs.writeFileSync('pid.txt', process.pid);
+fs.writeFileSync('pid.txt', process.pid.toString());
 
 const config = require('komodo-sdk/config');
 
-- 
1.9.0