aboutsummaryrefslogtreecommitdiffstats
path: root/etrn.c
diff options
context:
space:
mode:
Diffstat (limited to 'etrn.c')
-rw-r--r--etrn.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/etrn.c b/etrn.c
index d831c29f..2d6ef711 100644
--- a/etrn.c
+++ b/etrn.c
@@ -84,7 +84,8 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp,
if (gethostname(hname, sizeof hname) != 0)
{
/* exit with error message */
- error(5, errno, "gethostname");
+ error(0, errno, "gethostname failed: ");
+ return PS_UNDEFINED;
}
/* in case we got a host basename (as we do in Linux),
make a FQDN of it */
@@ -92,7 +93,8 @@ static int etrn_getrange(int sock, struct query *ctl, char *id, int *countp,
if (hp == (struct hostent *) NULL)
{
/* exit with error message */
- error(5, 0, "gethostbyname");
+ error(0, 0, "gethostbyname failed for %s", hname);
+ return PS_TRANSIENT;
}
/* here it is */
qname = hp->h_name;