Make SerialControl automatically close the TTY when readBuf fails
commit7217315c039439168debb4286ed02274e76c60b4
authorJonas Fonseca <fonseca@diku.dk>
Mon, 3 Dec 2007 00:36:44 +0000 (3 01:36 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 4 Dec 2007 22:39:31 +0000 (4 23:39 +0100)
treea2e849c082cce1af378c100c0193935493b9d366
parente2a790b20f31119a1c610adef27c001842f495f1
Make SerialControl automatically close the TTY when readBuf fails

This simplifies the "invalidation hook" in the MoteHost and reduces
the number of users of closeTty.
diku_mch/MoteHost.cc
diku_mch/SerialControl.cc