-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi there
On Wed, 16 Aug 2000 guenther+procmail(_at_)gac(_dot_)edu wrote:
Xander Soldaat <xander(_at_)soldaat(_dot_)com> writes:
I was wondering if it is necessary to use the :0: flag when writing to a
file,
ie something like this:
:0:
* some_condition
my_file
I was using procmail with VERBOSE=yes defined in my rc file and I
noticed some thing about aquiring kernel locks. Does this mean that the
":" is not always necessary, but only in the case of using a program
such as formail to write something to a file?
If you can trust the kernel-locking (no NFS involved, etc), and _all_
programs that access the file use kernel locking, then "yes".
Otherwise, no.
But who is to say that the other programs will respect the lock file :) If the
kernel has put a lock on a file, does this mean that the file cannot be opened
in RW mode? I am not much of a programmer anymore, but this would be
interesting to see. If this were the case then surely kernel locking would be a
far superior method for local filesystems.
The lock file mechanism is just user-space, is it not? Another program would
have to know that the lock file in the cwd belongs to file "A" and not file "B".
Just wondering...
Xander
- --------------------------------------------------------------------
Xander Soldaat xander(_at_)soldaat(_dot_)com
Firewall/security consultant xander(_at_)competa(_dot_)com
To get my public key, send a mail with "public key request" in the
subject to xander(_at_)soldaat(_dot_)com
Key fingerprint = F252 09D2 893E DAE0 EF09 AC3A 46FC BD78 CC13 BCF2
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (OpenBSD)
Comment: For info see http://www.gnupg.org
iD8DBQE5myLRRvy9eMwTvPIRAkIPAJ4prGYA8wI1x/kEm3xnBZsc36JIcgCdEWqa
6oHoO/TLYhY4KF7nVWIGQSk=
=K62o
-----END PGP SIGNATURE-----
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail