From 7ad86018a4d727afe9b95cf165c5555b1073cd8b Mon Sep 17 00:00:00 2001 From: Oxford Harrison Date: Fri, 4 Sep 2020 13:42:51 +0100 Subject: [PATCH] Update ProcessContainerFork.js --- lib/ProcessContainerFork.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ProcessContainerFork.js b/lib/ProcessContainerFork.js index a3d4aa5be..b7263a38e 100644 --- a/lib/ProcessContainerFork.js +++ b/lib/ProcessContainerFork.js @@ -3,6 +3,7 @@ * Use of this source code is governed by a license that * can be found in the LICENSE file. */ +var Url = require('url'); // Inject custom modules var ProcessUtils = require('./ProcessUtils') ProcessUtils.injectModules() @@ -26,7 +27,7 @@ if (process.connected && // Require the real application if (process.env.pm_exec_path) { if (ProcessUtils.isESModule(process.env.pm_exec_path) === true) { - import(process.env.pm_exec_path); + import(Url.pathToFileURL(process.env.pm_exec_path)); } else require('module')._load(process.env.pm_exec_path, null, true);