-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check fcntl return status or explicitly (void) #863
Comments
jphickey
added a commit
to jphickey/osal
that referenced
this issue
Mar 15, 2021
The fcntl() function is documented as returning -1 on error, so test for this condition and report errno if so. There is no recourse/handling - this just reports the error. However - failure to set the O_NONBLOCK flag via this method will fall back to blocking mode being used (timeouts will not work as a result).
jphickey
added a commit
to jphickey/osal
that referenced
this issue
Mar 15, 2021
The fcntl() function is documented as returning -1 on error, so test for this condition and report errno if so. There is no recourse/handling - this just reports the error. However - failure to set the O_NONBLOCK flag via this method will fall back to blocking mode being used (timeouts will not work as a result).
astrogeco
added a commit
that referenced
this issue
Mar 23, 2021
Fix #863, check/report fcntl status Fix Version and Readme to reflect correct buildnumber:350
jphickey
pushed a commit
to jphickey/osal
that referenced
this issue
Aug 10, 2022
jphickey
pushed a commit
to jphickey/osal
that referenced
this issue
Aug 10, 2022
Fix nasa#863, Add debug message from SendEvents
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Return status not checked/reported
osal/src/os/portable/os-impl-bsd-sockets.c
Line 364 in ead5723
Describe the solution you'd like
Add check and debug error output or explicitly void. Need to resolve w/ documentation research.
Describe alternatives you've considered
None
Additional context
None
Requester Info
Jacob Hageman - NASA/GSFC, OSAL code review
The text was updated successfully, but these errors were encountered: