Re: Policy wrt mail lockfile (section 4.3)

1997-06-23 Thread Thomas Koenig
Lars Wirzenius wrote: [replying to the list instead of privately, since this is of common interest, IMHO :-] If the protocol in the publib library has a way to get around that problem, I'd be interesting in learning more about it (and, possibly, dreaming up cases in which it might fail :-) I

Re: Policy wrt mail lockfile (section 4.3)

1997-06-22 Thread Karl M. Hegbloom
Christian == Christian Schwarz [EMAIL PROTECTED] writes: What happens? Can you describe the problem? Explain your setup in more detail, please. I would like to know more about the problems that are encountered with nfs. Christian The servers receives all mails from the

Re: Policy wrt mail lockfile (section 4.3)

1997-06-22 Thread Karl M. Hegbloom
Miquel == Miquel van Smoorenburg [EMAIL PROTECTED] writes: Miquel I now have open() in a preloaded library, /lib/nfslock.so Miquel that gets preloaded on all our machines through Miquel /etc/ld.so.preload. Does about the same thing, and lets us Miquel safely share mail over NFS.

Re: Policy wrt mail lockfile (section 4.3)

1997-06-22 Thread Miquel van Smoorenburg
According to Karl M. Hegbloom: Miquel == Miquel van Smoorenburg [EMAIL PROTECTED] writes: Miquel I now have open() in a preloaded library, /lib/nfslock.so Miquel that gets preloaded on all our machines through Miquel /etc/ld.so.preload. Does about the same thing, and lets us

Re: Policy wrt mail lockfile (section 4.3)

1997-06-21 Thread Rob Browning
John Goerzen [EMAIL PROTECTED] writes: However, why is it bad if a given program (like Elm-ME+ which I maintain, which brought the issue to my attention this time) uses *both* locking mechanisms? The only problem I know of is that with two locking schemes, if all programs don't agree on the

Re: Policy wrt mail lockfile (section 4.3)

1997-06-21 Thread Lukas Nellen
[EMAIL PROTECTED] said: Hmm, but why would that cause a problem with mailers/programs that use lockfile locking *and* flock/fcntl locking at the same time? Last time this discussion came up, Bruce found some info in the debian mail archive related to this. Can't find it now, though. If I

Re: Policy wrt mail lockfile (section 4.3)

1997-06-21 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Lars Wirzenius [EMAIL PROTECTED] wrote: --==_Exmh_970021023P Publib uses the return value from the stat call, which you're not supposed to do. (I don't know why yet.) I check that the link count is two to see if I managed to create the lock file with link(2). If

Re: Policy wrt mail lockfile (section 4.3)

1997-06-21 Thread Miquel van Smoorenburg
In article [EMAIL PROTECTED], Lars Wirzenius [EMAIL PROTECTED] wrote: --==_Exmh_970021023P Content-Type: text/plain; charset=us-ascii [ Please don't Cc: public replies to me. ] Karl M. Hegbloom: What happens? Can you describe the problem? Explain your setup in more detail, please. I would

Re: Policy wrt mail lockfile (section 4.3)

1997-06-21 Thread Christian Schwarz
On 20 Jun 1997, Karl M. Hegbloom wrote: Christian == Christian Schwarz [EMAIL PROTECTED] writes: Christian This is buggy since it's not working over NFS. (I'm Christian running into problems every few days since I use Christian sendmail/procmail/pine over a NFS mounted

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Rob Browning
John Goerzen [EMAIL PROTECTED] writes: Why are we using dotfile locking only? There are much better mechanisms (flock, etc.) that should be used instead. I can see no place where dotfile locking would work and flock-style locking would fail... I think flock can fail across NFS in certain

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Thomas Koenig
John Goerzen wrote: Why are we using dotfile locking only? There are much better mechanisms (flock, etc.) that should be used instead. I can see no place where dotfile locking would work and flock-style locking would fail... We don't have a lock daemon for NFS. -- Thomas Koenig, [EMAIL

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Karl M. Hegbloom
Rob == Rob Browning [EMAIL PROTECTED] writes: Rob I think flock can fail across NFS in certain situations, but Rob I'm no locking expert. You can read the man page to open(3) for a partial explaination. -- Karl M. Hegbloom [EMAIL PROTECTED] finger or ytalk:

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Christian Schwarz
On Fri, 20 Jun 1997, Lars Wirzenius wrote: [ Please don't Cc: public replies to me. ] John Goerzen: Why are we using dotfile locking only? There are much better mechanisms (flock, etc.) that should be used instead. I can see no place where dotfile locking would work and flock-style

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Christoph Lameter
: Mailboxes are locked using the username.lock lockfile convention, rather : than fcntl, flock or lockf. : This is buggy since it's not working over NFS. (I'm running into problems : every few days since I use sendmail/procmail/pine over a NFS mounted : /var/spool/mail !) I am using

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Karl M. Hegbloom
Christian == Christian Schwarz [EMAIL PROTECTED] writes: Christian This is buggy since it's not working over NFS. (I'm Christian running into problems every few days since I use Christian sendmail/procmail/pine over a NFS mounted Christian /var/spool/mail !) Christian That's

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Erik B. Andersen
This sounds good to me. When finished, we should announce this on c.o.l.a. and try to see if the Red Had folks will adopt it as well. If we both adopt it as policy, then it will live on forever! -Erik -- Erik B. Andersen Web:http://www.inconnect.com/~andersen/ email:

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread John Goerzen
Rob Browning [EMAIL PROTECTED] writes: John Goerzen [EMAIL PROTECTED] writes: Why are we using dotfile locking only? There are much better mechanisms (flock, etc.) that should be used instead. I can see no place where dotfile locking would work and flock-style locking would fail...

Re: Policy wrt mail lockfile (section 4.3)

1997-06-20 Thread Scott K. Ellis
-BEGIN PGP SIGNED MESSAGE- On 20 Jun 1997, John Goerzen wrote: I think flock can fail across NFS in certain situations, but I'm no locking expert. Hmm, but why would that cause a problem with mailers/programs that use lockfile locking *and* flock/fcntl locking at the same time?