Ok, last time (at least for today). 0 is a valid fd number
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7222 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -105,7 +105,7 @@ BSerialPort::Open(const char *portName)
|
||||
// A name like "/dev/ports/serial2" was passed
|
||||
snprintf(buf, 64, "%s", portName);
|
||||
|
||||
if (ffd > 0) //If this port is already open, close it
|
||||
if (ffd >= 0) //If this port is already open, close it
|
||||
close(ffd);
|
||||
|
||||
// TODO: BeOS don't use O_EXCL, and this seems to lead
|
||||
|
||||
Reference in New Issue
Block a user