POLLERR is only valid in revents so it is not a bug that it is
ignored in events.  The kernel does actually set POLLERR in revents
in some cases.