OS-5884: epoll should not emit POLLNVAL

Details

Issue Type:Bug
Priority:4 - Normal
Status:Resolved
Created at:2017-01-04T20:15:46.000Z
Updated at:2017-02-14T02:53:24.000Z

People

Created by:Former user
Reported by:Former user
Assigned to:Former user

Resolution

Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2017-02-14T02:53:24.000Z)

Fix Versions

2017-02-16 JAMAICA DECOY (Release Date: 2017-02-16)

Related Issues

Description

While checking the poll() handlers in various drivers across the system for proper POLLET behavior per OS-5882, it became clear that a subset of drivers can emit POLLNVAL via revents. While this is valid behavior for poll(2) and friends, it is not a recognized event value in the epoll API. There should be translation logic added to the devpoll output code.

Comments

Comment by Former user
Created at 2017-02-13T22:25:28.000Z

illumos-joyent commit 278a073 (branch master, by Patrick Mooney)

OS-5882 epoll fails to wake on certain edge-triggered conditions
OS-5884 epoll should not emit POLLNVAL
OS-5894 recursive epoll should emit EPOLLRDNORM
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Robert Mustacchi <rm@joyent.com>