Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 74628 invoked from network); 11 Oct 2006 11:25:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Oct 2006 11:25:43 -0000 Received: (qmail 96771 invoked by uid 500); 11 Oct 2006 11:25:41 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 96620 invoked by uid 500); 11 Oct 2006 11:25:40 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 96609 invoked by uid 99); 11 Oct 2006 11:25:40 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Oct 2006 04:25:40 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [206.190.36.82] (HELO smtp104.rog.mail.re2.yahoo.com) (206.190.36.82) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 11 Oct 2006 04:25:38 -0700 Received: (qmail 91108 invoked from network); 11 Oct 2006 11:25:16 -0000 Received: from unknown (HELO cal.cotef.org) (gwhulbert@rogers.com@72.140.234.123 with plain) by smtp104.rog.mail.re2.yahoo.com with SMTP; 11 Oct 2006 11:25:15 -0000 Subject: Re: [Fwd: [users@httpd] Killing apache child processes and logging (how to stop serving request?)] From: Guy Hulbert To: dev@httpd.apache.org In-Reply-To: <452CCCA3.6010103@unixsol.org> References: <452CCCA3.6010103@unixsol.org> Content-Type: text/plain Date: Wed, 11 Oct 2006 07:25:16 -0400 Message-Id: <1160565916.10295.4.camel@cal.cotef.org> Mime-Version: 1.0 X-Mailer: Evolution 2.0.4 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Wed, 2006-11-10 at 13:51 +0300, Georgi Chorbadzhiyski wrote: > Sometimes I need to kill an apache child process serving large file > before > request is completed. I run "kill -SIGTERM HTTPD_PID", the child dies > and > transfer is stopped but nothing is written in access log. I don't know the answer to your question specifically for apache but for many unix daemons, the 'HUP' (hang-up) signal is implemented as a clean shutdown. Incidentally, your "-SIGTERM" is redundant on most unices as that is normally the default for 'kill'. I would try "kill -HUP" (or "-SIGHUP" if it insists) ... and then check the man pages :-) ... etc ... -- --gh