mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:04:17 +08:00
Merged in hardlulz/modem-3.0-nuttx/fix-sem-EINTR (pull request #603)
Added ECANCELED condition to DEBUGASSERT-s checking sem_wait result Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
committed by
Gregory Nutt
parent
9e8332e5c8
commit
a8c58607e9
@@ -155,7 +155,7 @@ static void get_base62(FAR uint8_t *ptr)
|
||||
|
||||
while ((ret = _SEM_WAIT(&g_b62sem)) < 0)
|
||||
{
|
||||
DEBUGASSERT(_SEM_ERRNO(ret) == EINTR);
|
||||
DEBUGASSERT(_SEM_ERRNO(ret) == EINTR || _SEM_ERRNO(ret) == ECANCELED);
|
||||
}
|
||||
|
||||
memcpy(ptr, g_base62, MAX_XS);
|
||||
@@ -294,4 +294,3 @@ int mkstemp(FAR char *path_template)
|
||||
}
|
||||
|
||||
#endif /* CONFIG_FS_WRITABLE */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user