From: wessels <> Date: Thu, 23 May 2002 02:48:14 +0000 (+0000) Subject: complain if kill() (as in --enable-kill-parent-hack) returns an error. X-Git-Tag: SQUID_3_0_PRE1~1002 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a0a9b12d2fc12473b6f987b69726d879dbb6324a;p=thirdparty%2Fsquid.git complain if kill() (as in --enable-kill-parent-hack) returns an error. --- diff --git a/src/main.cc b/src/main.cc index 3f25577373..a4254e5d41 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.349 2002/04/06 08:49:27 adrian Exp $ + * $Id: main.cc,v 1.350 2002/05/22 20:48:14 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -267,7 +267,8 @@ shut_down(int sig) #ifdef KILL_PARENT_OPT if (getppid() > 1) { debug(1, 1) ("Killing RunCache, pid %d\n", getppid()); - kill(getppid(), sig); + if (kill(getppid(), sig) < 0) + debug(1, 1) ("kill %d: %s\n", getppid(), xstrerror()); } #endif #if SA_RESETHAND == 0