mirror of
https://codeberg.org/yeentown/barkey.git
synced 2025-05-03 20:16:58 +00:00
Kill child process on exit
This commit is contained in:
parent
1fc9d034d0
commit
5e788f0da4
1 changed files with 6 additions and 1 deletions
|
@ -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);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue