Browse Source
Merge pull request #813 from gre/no-zombie
BUGFIX: internal: process.exit on disconnect
master
Gaëtan Renaudeau
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
1 deletions
-
src/internals/index.js
|
|
@ -9,7 +9,7 @@ import { serializeError } from 'helpers/errors' |
|
|
|
|
|
|
|
require('../env') |
|
|
|
|
|
|
|
process.title = 'Internal' |
|
|
|
process.title = 'Ledger Live Internal' |
|
|
|
|
|
|
|
process.on('uncaughtException', err => { |
|
|
|
process.send({ |
|
|
@ -113,4 +113,8 @@ process.on('message', m => { |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
process.on('disconnect', () => { |
|
|
|
process.exit(0) |
|
|
|
}) |
|
|
|
|
|
|
|
logger.log('Internal process is up!') |
|
|
|