Date: Sun, 23 Nov 2003 11:17:57 +0100 (CET) From: "Cordula's Web" <cpghost@cordula.ws> To: roberthuff@rcn.com Cc: questions@freebsd.org Subject: Re: Monitoring a file? Message-ID: <200311231017.hANAHvpd097677@fw.farid-hajji.net> In-Reply-To: <16320.5175.69241.145102@jerusalem.litteratus.org> (message from Robert Huff on Sat, 22 Nov 2003 20:58:15 -0500) References: <200311222258.hAMMwApd092388@fw.farid-hajji.net> <16320.5175.69241.145102@jerusalem.litteratus.org>
next in thread | previous in thread | raw e-mail | index | archive | help
> > A file, let's say, /path/to/a/file, is being modified by > > an unknown process P(u) at random times. Unfortunately, > > the name of the program ran by P(u) is unknown. > > Have you tried moving the file elsewhere and seeing if anyone > complains about the absence? No, P(u) obviously fails silently. There's nothing recorded by syslog, no messages on the console, and no core dumps... > Or writing a program that locks the file? That was a good idea. However, P(u) didn't seem to take a lock. Advisory locks are just that: if P(u) doesn't lock the file, existing locks don't matter at all. Do we have mandatory locks in FreeBSD? Thank you. -- Cordula's Web. http://www.cordula.ws/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200311231017.hANAHvpd097677>