pryre commented on issue #16935:
URL: https://github.com/apache/nuttx/issues/16935#issuecomment-3235727083

   I'm not sure if it's a related issue, but the desired behavior would be for 
`usleep()` to follow the POSIX convention, where an interrupted call would 
return `-1` with `errno` set to EINTR:
   
   ```
   RETURN VALUE         
[top](https://man7.org/linux/man-pages/man3/usleep.3.html#top_of_page)
   
          The usleep() function returns 0 on success.  On error, -1 is
          returned, with 
[errno](https://man7.org/linux/man-pages/man3/errno.3.html) set to indicate the 
error.
   
   ERRORS         
[top](https://man7.org/linux/man-pages/man3/usleep.3.html#top_of_page)
   
          EINTR  Interrupted by a signal; see 
[signal(7)](https://man7.org/linux/man-pages/man7/signal.7.html).
   
          EINVAL usec is greater than or equal to 1000000.  (On systems
                 where that is considered an error.)
   ```
   
   I was not able to get this behavior on either side of the change listed.


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