Clean up Windows event handles on com port close
authorKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:04:19 +0000 (23:04 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 12 Sep 2012 06:04:19 +0000 (23:04 -0700)
commit3fa5fbdfd1ab257028f272fbc32759b39608ddaf
treec9e70921d00150893431f22ec8f926e70cf7e574
parent1a154ce0b9fc3ea360d6bc7e17d6debb2da94438
Clean up Windows event handles on com port close

This avoids having to wait for the receiver to timeout before we can
open the same com port again.

This patch also adds a bit more debugging -- it prints Windows error
messages to stdout along with the file/line where the error was generated.

Signed-off-by: Keith Packard <keithp@keithp.com>
altosui/libaltos/libaltos.c