Great Circle Associates Majordomo-Users
(May 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: Possible race condition in Majordomo 1.94.1 causing bounces
From: Dave Wolfe <dwolfe @ risc . sps . mot . com>
Date: Fri, 2 May 1997 08:41:58 -0500 (CDT)
To: pettern @ thule . no (Petter Nilsen)
Cc: majordomo-users @ greatcircle . com
In-reply-to: <984.7061T61T1866@thule.no> from "Petter Nilsen" at May 2, 97 01:01:37 am
Reply-to: Dave Wolfe <david_wolfe @ risc . sps . mot . com>

[ Petter Nilsen writes: ]
> 
> In article <199705011625.LAA15076@miaow.risc.sps.mot.com>,
> dwolfe@risc.sps.mot.com (Dave Wolfe) wrote:
> 
> > Since locks, particularly lock-file locks, are purely advisory on Unix
> > systems, such an approach would require the cooperation of all possible
> > MTAs, which seems unlikely considering approximately none of them know
> > or care about Mj in the first place.
> 
> Well, I don't mean that the MTA should do any locking, that should be
> done by majordomo when modifying the subscription list, just like any
> other lock used.

But for advisory locks, what good does it do unless *ALL* accessors test
and set the lock? Your error is coming from the file not being there the
moment the MTA tries to access it. If the MTA doesn't check locks, then
it doesn't matter what MJ does about locking because it'll still be
accessing the file even when Mj has it locked.

FWIW, Mj *does* set a lock when manipulating the list file so that other
Mj processes can't interfere. That's what the lopen() call does at line
427 (1.94.3) in majordomo do_unsubscribe(). The bounce cited in your
previous mail was from the MTA trying to access the list in the window
when the list file doesn't exist between the unlink() and link() to
rename the modified list file to be the actual list file.

-- 
 Dave Wolfe


Follow-Ups:
References:
Indexed By Date Previous: More ?? on bounces
From: "Allison & Rick Martin" <cyberfam@cais.com>
Next: upgrade question
From: eliz@world.std.com (Elizabeth Lear)
Indexed By Thread Previous: Re: Possible race condition in Majordomo 1.94.1 causing bounces
From: Petter Nilsen <pettern@thule.no>
Next: Re: Possible race condition in Majordomo 1.94.1 causing bounces
From: Petter Nilsen <pettern@thule.no>

Google
 
Search Internet Search www.greatcircle.com