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

/dev/null on FreeBSD: invalid fd #12

Open
segoon opened this issue Jan 2, 2023 · 0 comments
Open

/dev/null on FreeBSD: invalid fd #12

segoon opened this issue Jan 2, 2023 · 0 comments

Comments

@segoon
Copy link

segoon commented Jan 2, 2023

First, thanks for such a good library. I tried to run unit tests of userver (https://github.com/userver-framework/userver) on FreeBSD 13.1 and got an assert from libev: libev: kqueue found invalid fd. I think it is a problem of libev:

  1. it is not EBADF, it is ENODEV (device doesn't support operation0, /dev/null doesn't support read/write I suppose. One should not assert on that. It looks odd to get "ok, you can read from fd" on Linux and assert on FreeBSD for /dev/null read polls.
  2. the error message is cryptic, it is "operation not supported" and not "invalid fd".
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