From owner-freebsd-questions Fri May 29 02:02:49 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA11101 for freebsd-questions-outgoing; Fri, 29 May 1998 02:02:49 -0700 (PDT) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mailhost.dircon.co.uk (mailhost.dircon.co.uk [194.112.50.75]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA10789 for ; Fri, 29 May 1998 02:02:31 -0700 (PDT) (envelope-from danny@AlphaZed.COM) Received: from milliard.uk.alphazed.com (dannyl.dircon.co.uk [194.112.43.62]) by mailhost.dircon.co.uk (8.8.8/8.8.7) with ESMTP id KAA15766 for ; Fri, 29 May 1998 10:02:27 +0100 (BST) Received: (qmail 7635 invoked by uid 0); 29 May 1998 08:55:29 -0000 Received: from unknown (HELO AlphaZed.COM) (unknown) by unknown with SMTP; 29 May 1998 08:55:29 -0000 Message-ID: <356E7801.70DB8C3F@AlphaZed.COM> Date: Fri, 29 May 1998 09:55:29 +0100 From: daniel lawrence Organization: AlphaZed, Ltd X-Mailer: Mozilla 4.05 [en] (X11; U; FreeBSD 2.2.6-STABLE i386) MIME-Version: 1.0 To: questions@FreeBSD.ORG Subject: fstat dying on signal 10 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I am using fstat(1) in an Apache log rotation script run via cron. The idea is that the script signals Apache to close and re-open its log files, then it loops on fstat until no process has the logs open. Then the logs are analyzed and compressed. The problem is that fstat randomly dies on signal 10. It is fairly frequent, but I cannot repeat it from the command line and I can't find a core file. The relevant part of the script looks like this: while [ `fstat $file_list|wc -l` -gt 1 ]; do sleep 1 done This happens on Apache versions 1.2.4 and 1.2.6 on 2.2.1-RELEASE and the latest 2.2.6-STABLE. -- daniel lawrence AlphaZed, Ltd mailto:danny@AlphaZed.COM http://uk.AlphaZed.COM +44 (0)1322 410 419 London To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message