duino icon indicating copy to clipboard operation
duino copied to clipboard

Fix hang after SIGINT in debug mode

Open mattness opened this issue 12 years ago • 0 comments

Sending SIGINT (^c) to the process when in debug mode causes the process to (at least appear to) hang, because the serial port is still open. Instead of deleting our reference to the serialport, call its close method, and then call process.exit in the handler for the close event.

mattness avatar May 04 '13 03:05 mattness