Correction receive_packet (renvoie -1 si select fails).