Put timeout on recvfrom using SIGALRM signal