fix(db): Use SIGTERM instead of signal 1

This commit is contained in:
Ben Gotow 2016-11-21 13:25:08 -08:00
parent e38d7b10ea
commit ecabe81a2c

View file

@ -418,7 +418,7 @@ class DatabaseStore extends NylasStore {
});
this._agent.on('error', (err) => {
console.error(DEBUG_TO_LOG, `Query Agent: failed to start or receive message: ${err.toString()}`);
this._agent.kill(1);
this._agent.kill('SIGTERM');
this._agent = null;
});
this._agent.on('message', ({type, id, results, agentTime}) => {