Riddhesh Markandeya
Riddhesh Markandeya
@ForbesLindesay, thanks for the response. Your solution works, also another way can be to put the exit event listener using `process.prependListener('exit', ()=>{})`, so it's called before the sync-rpc's exit listener....
Tested little bit more for `SIGINT`, for below script(hitting Ctrl+c when 'Process started' is printed): ```js const syncRequest = require('sync-request'); // v6.1.0 console.log('Process started'); process.on('SIGINT', () => { console.log('got SIGINT');...
That makes sense, thanks @ForbesLindesay, feel free to close the issue.