pkarashchenko commented on issue #9695:
URL: https://github.com/apache/nuttx/issues/9695#issuecomment-1620456242
The `-ECANCELED` is returned always because of nested cancelation point. The
most top `enter_cancellation_point()` is called from `open()`, so all later
calls of cancelable APIs from inside the `open()` will be a nested cancelation
points:
```
/* sem_wait() is a cancellation point */
if (enter_cancellation_point())
{
#ifdef CONFIG_CANCELLATION_POINTS
/* If there is a pending cancellation, then do not perform
* the wait. Exit now with ECANCELED.
*/
errcode = ECANCELED;
goto errout_with_cancelpt;
#endif
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]