harryhorton/node-nmap

NMAP freeze on app close

harryhorton opened this issue · 1 comments

NMAP is freezing when the node app is closed before the scan is complete.

Watch for process.on('SIGINT', function(){})
and
process.on('unhandledexception', function(){});
//check for actual strings.

Kill the spawned process in these events.