mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Cleanup of checking of user resources
Added missing checking of no_keyread
This commit is contained in:
@@ -426,9 +426,12 @@ int my_pthread_cond_timedwait(pthread_cond_t *cond, pthread_mutex_t *mutex,
|
||||
{
|
||||
int error=pthread_cond_timedwait(cond, mutex, abstime);
|
||||
if (error == -1) /* Safety if the lib is fixed */
|
||||
error=errno;
|
||||
{
|
||||
if (!(error=errno))
|
||||
error= ETIMEDOUT; /* Can happen on HPUX */
|
||||
}
|
||||
if (error == EAGAIN) /* Correct errno to Posix */
|
||||
error=ETIMEDOUT;
|
||||
error= ETIMEDOUT;
|
||||
return error;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user