Date: Mon, 20 Jan 1997 00:09:36 +1100 From: Giles Lean <giles@nemeton.com.au> To: Harlan Stenn <Harlan.Stenn@pfcs.com> Cc: freebsd-hackers@freebsd.org Subject: Re: usr.sbin/ppp: reopen ppp.log on SIGUSR1? Message-ID: <199701191309.AAA03400@nemeton.com.au> In-Reply-To: <6559.853657882@mumps.pfcs.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701191309.AAA03400>