patacongo commented on issue #9695:
URL: https://github.com/apache/nuttx/issues/9695#issuecomment-1620589895

   > 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:
   
   And this is one of the reasons that we have nx* versions of all most of the 
application APIs.  Ideally nothing called from open() (or any other application 
API) should introduce nesting of the cancellation point.  I don't know the full 
calling sequence but I think suspect that the only violation to this in this 
case is the expansion of __SEM_WAINT() to sem_wait() instead of to nxsem_wait().
   
   I had proposed at one time that we ASSERT if a nested cancellation point is 
called.  But I don't think anyone wants to deal with the problems that 
assertion we be likely to uncover.
   


-- 
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]

Reply via email to