Skip to content

select() emulation doesn't handle POLLHUP/POLLERR/POLLPRI correctly #35

@bonzini

Description

@bonzini

POLLHUP should set the file descriptor's bit in rfds, POLLERR should set it in wfds and rfds (but not xfds), POLLPRI should set it in xfds. As to POLLRDHUP, I guess it should set wfds since writes would always fail with EPIPE and thus not block... but Linux just ignores in its select() code which is a wrapper for poll() like OSv's.

Seriously... What an awesome project, and the C++ code is the nicest I've ever seen! Keep it up!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions