From b852b564e855b2e7244a769c6d14dd282ccd657a Mon Sep 17 00:00:00 2001 From: cha0s Date: Thu, 30 Nov 2023 20:41:20 -0600 Subject: [PATCH] chore: electron patch --- patches/electron+18.0.1.patch | 9 --------- patches/electron+18.3.15.patch | 18 ++++++++++++++++++ 2 files changed, 18 insertions(+), 9 deletions(-) delete mode 100644 patches/electron+18.0.1.patch create mode 100644 patches/electron+18.3.15.patch diff --git a/patches/electron+18.0.1.patch b/patches/electron+18.0.1.patch deleted file mode 100644 index db13fcd..0000000 --- a/patches/electron+18.0.1.patch +++ /dev/null @@ -1,9 +0,0 @@ -diff --git a/node_modules/electron/cli.js b/node_modules/electron/cli.js -index 09f4677..b64bb88 100755 ---- a/node_modules/electron/cli.js -+++ b/node_modules/electron/cli.js -@@ -23,3 +23,4 @@ const handleTerminationSignal = function (signal) { - - handleTerminationSignal('SIGINT'); - handleTerminationSignal('SIGTERM'); -+handleTerminationSignal('SIGUSR2'); diff --git a/patches/electron+18.3.15.patch b/patches/electron+18.3.15.patch new file mode 100644 index 0000000..74c6532 --- /dev/null +++ b/patches/electron+18.3.15.patch @@ -0,0 +1,18 @@ +diff --git a/node_modules/electron/cli.js b/node_modules/electron/cli.js +index 09f4677..5227264 100755 +--- a/node_modules/electron/cli.js ++++ b/node_modules/electron/cli.js +@@ -15,11 +15,10 @@ child.on('close', function (code, signal) { + + const handleTerminationSignal = function (signal) { + process.on(signal, function signalHandler () { +- if (!child.killed) { +- child.kill(signal); +- } ++ child.kill(signal); + }); + }; + + handleTerminationSignal('SIGINT'); + handleTerminationSignal('SIGTERM'); ++handleTerminationSignal('SIGUSR2');