select: return a list in ascending order

Do not check control fd's for events. Fix off by one read past the end
of the buffer.