From 4e486a5d00830990cdfda68eb5dceefab43635f5 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 12 Jan 2003 06:08:33 +0000 Subject: Kiss Gabor noticed that ping compiled without BB_FEATURE_FANCY_PING would return 0 instead of EXIT_FAILURE when no response was received. --- networking/ping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'networking/ping.c') 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 @@ -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) -- cgit v1.2.3-55-g6feb