chore: electron patch

This commit is contained in:
cha0s 2023-11-30 20:41:20 -06:00
parent e5269df083
commit b852b564e8
2 changed files with 18 additions and 9 deletions

View File

@ -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');

View File

@ -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');