Skip to content

Descriptors not supported by uv cause a crash #2

Open
@mzabaluev

Description

@mzabaluev

Currently libuv aborts when EPOLL_CTL_ADD fails to add a descriptor to the poll. This can happen when the descriptor is not pollable accordingly to the kernel. The GMainContext API in GLib, however, supports any Unix descriptors because the upstream implementation uses POSIX poll().
To fix this, libuv should be changed to gracefully report such failures, e.g. by calling the poll callback once with an error status.

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