refactoring
fix const value POLLIN/POLLOUT