8000 /dev/null on FreeBSD: invalid fd · Issue #12 · enki/libev · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/dev/null on FreeBSD: invalid fd #12
Open
@segoon

Description

@segoon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0