select() on sockets considered harmful, use poll() instead?