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:
parent
07399094b3
commit
b5f4d95e89
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user