Skip to content
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

drvAsynIPPort depends on EWOULDBLOCK being the same as EAGAIN #175

Open
ericonr opened this issue Apr 18, 2023 · 0 comments
Open

drvAsynIPPort depends on EWOULDBLOCK being the same as EAGAIN #175

ericonr opened this issue Apr 18, 2023 · 0 comments

Comments

@ericonr
Copy link
Contributor

ericonr commented Apr 18, 2023

This conditional in readIt() is used to determine if we should disconnect from the device. It seems to rely on EWOULDBLOCK being the same as EAGAIN (since recv/recvfrom can return either of them), which is not a guarantee -- though I don't know if it's actually the case for any platform. I wouldn't be surprised if a lot of code (in general and EPICS code specifically) relies on this assumption, but the Linux manuals recommend against it explicitly as well (under ERRORS).

From https://epics.anl.gov/tech-talk/2023/msg00466.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant