Kill child process on exit

This commit is contained in:
Aya Morisawa 2018-07-14 00:39:39 +09:00
parent 9cf9d341b3
commit 2e9e300d0c

View file

@ -17,4 +17,9 @@ export default function() {
ev.on('requestNotesStatsLog', id => { ev.on('requestNotesStatsLog', id => {
ev.emit('notesStatsLog:' + id, log); ev.emit('notesStatsLog:' + id, log);
}); });
process.on('exit', code => {
process.kill(p.pid);
});
} }