Merge "Fix isValid() condition for libsync tests"
This commit is contained in:
commit
48f2e1ed31
|
@ -50,7 +50,7 @@ public:
|
|||
bool isValid() const {
|
||||
if (m_fdInitialized) {
|
||||
int status = fcntl(m_fd, F_GETFD, 0);
|
||||
if (status == 0)
|
||||
if (status >= 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
@ -92,7 +92,7 @@ public:
|
|||
bool isValid() const {
|
||||
if (m_fdInitialized) {
|
||||
int status = fcntl(m_fd, F_GETFD, 0);
|
||||
if (status == 0)
|
||||
if (status >= 0)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue