[PATCH 3/3] packet_get(): use poll() instead of select()