X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fport.cc;h=b6820335f1c3d610874da501710c67c219fe5006;hb=9c5fa1db34c5fb1ffed88742caeffa5a9afd0a9e;hp=152d8360be12d51e4d09409c0be7c97520cb921a;hpb=aa431d73f34773d6a4b7fc104f9bd7ae0384e094;p=m6w6%2Flibmemcached diff --git a/libtest/port.cc b/libtest/port.cc index 152d8360..b6820335 100644 --- a/libtest/port.cc +++ b/libtest/port.cc @@ -100,7 +100,6 @@ in_port_t get_free_port() if (getsockname(sd, (struct sockaddr *)&sin, &addrlen) != -1) { ret_port= sin.sin_port; - Error << ret_port; } } } @@ -117,7 +116,7 @@ in_port_t get_free_port() // We handle the case where if we max out retries, we still abort. if (ret_port <= 1024) { - abort(); + throw fatal_message("No port could be found"); } return ret_port;