Fix crash in dexsearch

This commit is contained in:
Guangcong Luo 2016-03-16 09:44:14 -05:00
parent e87fd32550
commit 044f4f84e9

View File

@ -153,6 +153,14 @@ if (!process.send) {
} else {
// This is the child
global.Config = require('../config/config.js');
if (Config.crashguard) {
process.on('uncaughtException', err => {
require('./crashlogger.js')(err, 'A dexsearch process', true);
});
}
global.Tools = require('../tools.js');
global.toId = Tools.getId;
Tools.includeData();