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:
Stefano Ceccherini
2004-04-16 10:32:59 +00:00
parent 7d60c514f8
commit 8af87c1dcc
+1 -1
View File
@@ -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