Skip to content
This repository was archived by the owner on Feb 23, 2021. It is now read-only.

Commit 3443585

Browse files
authored
Merge pull request #624 from lightninglabs/safe-lnd-shutdown
Safely shutdown lnd with SIGINT.
2 parents 56744f9 + 4587d48 commit 3443585

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

public/electron.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,8 @@ app.on('activate', () => {
195195
});
196196

197197
app.on('quit', () => {
198-
lndProcess && lndProcess.kill();
199-
btcdProcess && btcdProcess.kill();
198+
lndProcess && lndProcess.kill('SIGINT');
199+
btcdProcess && btcdProcess.kill('SIGINT');
200200
});
201201

202202
app.setAsDefaultProtocolClient(PREFIX_NAME);

test/integration/action/action-integration.spec.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,9 @@ describe('Action Integration Tests', function() {
169169

170170
after(async () => {
171171
await Promise.all([grpc1.closeLnd(), grpc2.closeLnd()]);
172-
lndProcess1.kill();
173-
lndProcess2.kill();
174-
btcdProcess.kill();
172+
lndProcess1.kill('SIGINT');
173+
lndProcess2.kill('SIGINT');
174+
btcdProcess.kill('SIGINT');
175175
});
176176

177177
describe('Generate seed and unlock wallet', () => {
@@ -223,7 +223,7 @@ describe('Action Integration Tests', function() {
223223
});
224224

225225
it('should fund wallet for node1', async () => {
226-
btcdProcess.kill();
226+
btcdProcess.kill('SIGINT');
227227
btcdArgs.miningAddress = store1.walletAddress;
228228
btcdProcess = await startBtcdProcess(btcdArgs);
229229
await nap(NAP_TIME);

0 commit comments

Comments
 (0)