harryhorton / node-nmap

NPM package for interfacing with local NMAP installation
MIT License
67 stars 26 forks source link

NMAP freeze on app close #5

Closed harryhorton closed 8 years ago

harryhorton commented 8 years ago

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

harryhorton commented 8 years ago

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

Kill the spawned process in these events.