chore: electron patch
This commit is contained in:
parent
e5269df083
commit
b852b564e8
|
@ -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');
|
|
18
patches/electron+18.3.15.patch
Normal file
18
patches/electron+18.3.15.patch
Normal 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');
|
Loading…
Reference in New Issue
Block a user