[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [bug-mailutils] Lock with external program question

From: Alain Magloire
Subject: RE: [bug-mailutils] Lock with external program question
Date: Wed, 21 Sep 2005 13:42:57 -0400

> From: address@hidden [mailto:bug-mailutils-
> Subject: Re: [bug-mailutils] Lock with external program question
> On Wed, Sep 21, 2005 at 06:46:06PM +0300, Kostas Zorbadelos wrote:
> Please discard this question. Our decision in not to use an external
> program (as it will spawn an external process). Instead we would like
> to implement another locking method or extend the ones found in
> locker.c
> Will lets you know and send patches.

Interesting, for mailbox locking, there are 2 types of locks that are
- the dotlock: creating a known temporary file(with the PID as the content)
- the fcntl/lockf: using the OS locking mechanism, with the caveat it may
not work across distributed file system like NFS.

This seems to cover most cases, so the locker_t object did not allow to
overload its behaviour besides, providing the behaviour with the flags at
creation locker_create(..., flags);

I'm curious, what scenario did we not cover, with all the flags define in

reply via email to

[Prev in Thread] Current Thread [Next in Thread]