Set SerialControl::port to -1 in the constructor and when closing it
commite2a790b20f31119a1c610adef27c001842f495f1
authorJonas Fonseca <fonseca@diku.dk>
Mon, 3 Dec 2007 00:49:23 +0000 (3 01:49 +0100)
committerJonas Fonseca <fonseca@diku.dk>
Tue, 4 Dec 2007 22:39:03 +0000 (4 23:39 +0100)
treecef54d23eca8ffd1800ba36048d27b0bfaf0f414
parentaefe5a0422d1973b833d34e47c736a5efe9db187
Set SerialControl::port to -1 in the constructor and when closing it

This ensure that its value is more consistent and that the getFd()
will not cause the mote host to add closed file descriptors to its
fdset.
diku_mch/SerialControl.cc