From owner-freebsd-hackers Sun Jan 19 05:16:35 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id FAA00837 for hackers-outgoing; Sun, 19 Jan 1997 05:16:35 -0800 (PST) Received: from perki0.connect.com.au (perki0.connect.com.au [192.189.54.85]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id FAA00832 for ; Sun, 19 Jan 1997 05:16:31 -0800 (PST) Received: (from Unemeton@localhost) by perki0.connect.com.au id AAA21288 (8.7.6h/IDA-1.6); Mon, 20 Jan 1997 00:14:59 +1100 (EST) X-Authentication-Warning: perki0.connect.com.au: Unemeton set sender to giles@nemeton.com.au using -f >Received: from localhost.nemeton.com.au (localhost.nemeton.com.au [127.0.0.1]) by nemeton.com.au (8.8.4/8.8.4) with SMTP id AAA03400; Mon, 20 Jan 1997 00:09:37 +1100 (EST) Message-Id: <199701191309.AAA03400@nemeton.com.au> To: Harlan Stenn cc: freebsd-hackers@freebsd.org Subject: Re: usr.sbin/ppp: reopen ppp.log on SIGUSR1? In-reply-to: <6559.853657882@mumps.pfcs.com> Date: Mon, 20 Jan 1997 00:09:36 +1100 From: Giles Lean Content-Type: text Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Sun, 19 Jan 1997 02:11:22 -0500 Harlan Stenn wrote: > - Have ppp "periodically" check the logfile and reopen it when it > detects it's been rotated (stat the file and see if ctimespec != > mtimespec, right?) Stat the file name and re-open when the device/inode pair changes. (Or when the size reduces, if you think someone might truncate in place.) Giles