Skip to Content.
Sympa Menu

devel - Re: [sympa-dev] list of lists page chapter n+1: write locks

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: András Bendzsák <address@concealed>
  • To: address@concealed
  • Subject: Re: [sympa-dev] list of lists page chapter n+1: write locks
  • Date: Thu, 06 Jan 2011 10:47:14 +0100

Hi David,

> Anyway, to answer your request, we need the pid number in some cases,
> such as when a process crashed and a new process starts and finds a pid
> file. This is how we are able to send the errors that made the process
> crash to the listmaster.

Could you point to which part of the code _read_ the PID from the lock
files (eg. stats.lock)?

> However:
> - it is not necessary anytime, so we could tweak this.
> - I don't see any reason why we sould put a write lock when displaying
> the list of lists. All we need to do, after all, is read data to know
> whether we can display a list or not. Nothing to write here. So there
> may be a bug.

When the first time the cgi loads the lists it updates the admin_table,
the stats and maybe the binary configs. I don't know which part of these
are necessary.

--
Andras Bendzsak



Archive powered by MHonArc 2.6.19+.

Top of Page