1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-19 06:50:07 +03:00

development: Fix compilation warning for select based sleep

This commit is contained in:
Ruben S. Montero 2018-11-28 13:06:18 +01:00
parent 07399094b3
commit b5f4d95e89

View File

@ -125,13 +125,11 @@ int SqliteDB::exec(ostringstream& cmd, Callbackable* obj, bool quiet)
if (rc == SQLITE_BUSY || rc == SQLITE_IOERR)
{
struct timeval timeout;
fd_set zero;
FD_ZERO(&zero);
timeout.tv_sec = 0;
timeout.tv_usec = 250000;
select(0, &zero, &zero, &zero, &timeout);
select(0, NULL, NULL, NULL, &timeout);
}
}while( (rc == SQLITE_BUSY || rc == SQLITE_IOERR) &&
(counter < 10));