aboutsummaryrefslogtreecommitdiff
path: root/networking/ping.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2003-01-12 06:08:33 +0000
committerEric Andersen <andersen@codepoet.org>2003-01-12 06:08:33 +0000
commit4e486a5d00830990cdfda68eb5dceefab43635f5 (patch)
treec5ce74999159be05372f47a6cfac9610019fa749 /networking/ping.c
parent1dcf218e60849b58b1efa7ce43cf0c4e14f95617 (diff)
downloadbusybox-4e486a5d00830990cdfda68eb5dceefab43635f5.tar.gz
Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PING
would return 0 instead of EXIT_FAILURE when no response was received.
Diffstat (limited to 'networking/ping.c')
-rw-r--r--networking/ping.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c
index f21f2b1a8..044b547ac 100644
--- a/networking/ping.c
+++ b/networking/ping.c
@@ -1,6 +1,6 @@
/* vi: set sw=4 ts=4: */
/*
- * $Id: ping.c,v 1.52 2002/06/06 11:47:00 andersen Exp $
+ * $Id: ping.c,v 1.53 2003/01/12 06:08:33 andersen Exp $
* Mini ping implementation for busybox
*
* Copyright (C) 1999 by Randolph Chung <tausq@debian.org>
@@ -179,7 +179,7 @@ static char *hostname = NULL;
static void noresp(int ign)
{
printf("No response from %s\n", hostname);
- exit(0);
+ exit(EXIT_FAILURE);
}
static void ping(const char *host)