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

Fixed bug which caused prussdrv_open() to fail if file descriptor = 0 #68

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

VedantParanjape
Copy link

Fixes issue #44

@hzeller
Copy link
Contributor

hzeller commented Jul 17, 2022

This solution looks like a hack to me: now we open an unnecesary file and worse have to open the same uio file again, just so that we don't run into a file descriptor that happens to be the sentinel.

What needs to happen is that internally the sentinel value is changed to something outside the range of valid file descriptors (e.g. negative numbers).

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

Successfully merging this pull request may close these issues.

2 participants