poll only returns active events in revents table, increases performance

The current poll implementation always adds a boolean for each possible event (IN, OUT, HUP, PRI, ERR, NVAL) to the fd's revents table, setting them to true or false. This patch only sets the triggered events to true, and leaves out the others.

Increases performance in my test case with approx 20%.