From f5b2e1bab20f11b260b1477d183ddab24edaa9c1 Mon Sep 17 00:00:00 2001 From: amosjeffries <> Date: Tue, 8 Jan 2008 18:10:48 +0000 Subject: [PATCH] Fix error causing pinger to abort if ICMP unavailable, even if ICMPv6 is. --- src/fs/Makefile.am | 4 ++-- src/pinger.cc | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/fs/Makefile.am b/src/fs/Makefile.am index 144f4cb400..639f953ebb 100644 --- a/src/fs/Makefile.am +++ b/src/fs/Makefile.am @@ -1,13 +1,13 @@ # Makefile for storage modules in the Squid Object Cache server # -# $Id: Makefile.am,v 1.14 2007/12/27 15:48:55 hno Exp $ +# $Id: Makefile.am,v 1.15 2008/01/08 11:10:48 amosjeffries Exp $ # AUTOMAKE_OPTIONS = subdir-objects AM_CFLAGS = @SQUID_CFLAGS@ AM_CXXFLAGS = @SQUID_CXXFLAGS@ -##DIST_SUBDIRS = coss null ufs +##DIST_SUBDIRS = coss ufs EXTRA_LIBRARIES = libcoss.a libufs.a noinst_LIBRARIES = @STORE_LIBS@ diff --git a/src/pinger.cc b/src/pinger.cc index bd8feba706..e6454ceb9e 100644 --- a/src/pinger.cc +++ b/src/pinger.cc @@ -1,5 +1,5 @@ /* - * $Id: pinger.cc,v 1.60 2007/12/14 23:11:47 amosjeffries Exp $ + * $Id: pinger.cc,v 1.61 2008/01/08 11:10:48 amosjeffries Exp $ * * DEBUG: section 42 ICMP Pinger program * AUTHOR: Duane Wessels @@ -135,8 +135,10 @@ main(int argc, char *argv[]) #if USE_IPV6 if(icmp6_worker == -1) #endif + { debugs(42, 0, "FATAL: pinger: Unable to open any ICMP sockets."); exit(1); + } } if( (squid_link = control.Open()) < 0) { -- 2.47.3