From a8c4dcc616c48e823a19f69e80dc3a729e7a8726 Mon Sep 17 00:00:00 2001
From: Adhidarma Hadiwinoto <adhisimon@gmail.com>
Date: Mon, 10 May 2021 18:13:38 +0700
Subject: [PATCH] process.pid write as a string to comply nodejs 14

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

diff --git a/index.js b/index.js
index caf97e4..64176fe 100644
--- a/index.js
+++ b/index.js
@@ -1,8 +1,7 @@
-"use strict";
 process.chdir(__dirname);
 
 const fs = require('fs');
-fs.writeFileSync('pid.txt', process.pid);
+fs.writeFileSync('pid.txt', process.pid.toString());
 
 const apiserver = require('komodo-sdk/api-server');
 const pullgw = require('komodo-sdk/gateway/pull');
-- 
1.9.0