Port klipper away from select() to poll()
select() is not safe, it can corrupt stack if the polled fd is greater than FD_SETSIZE. poll() is a much safer alternative. Unlike 20 or so years ago, many unix systems support poll() nowadays, so we can safely use it.