RE: mbox ownership

andre deblire <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Message-ID <20040416150527.CB0B580BB@Host1>
I use the default locking on Linux (RedHat 8). Is it safe ?

I didn't find a thread about this topic in the mailing list (searching
Kees Dekker). Where can I find more information about safe
locking/platform  ?


> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 'Mark Overmeer'
> Sent: vendredi 16 avril 2004 16:08
> To: andre deblire
> Cc: Mail-Box Mailinglist
> Subject: Re: mbox ownership
> 
> 
> * andre deblire ([email protected]) [040413 00:05]:
> > I found a workaround not extensively tested, but it seems to work :
> > ########
> > $Folder->write();
> > chown(...);
> > $Folder->close();
> > ########
> > 
> > Do you see a problem with this ?
> 
> When you use proper locking, this may work.  However, on some
> platforms and with some locking methods, the folder lock is lost
> after a $folder->write.  In those cases (which Kees Dekker is
> trying to solve) your work-around isn't 100% safe.
> -- 
>                MarkOv
> 
> --------------------------------------------------------------
> ----------
> drs Mark A.C.J. Overmeer                                
> MARKOV Solutions
>        [email protected]                          
> [email protected]
> http://Mark.Overmeer.net                   
> http://solutions.overmeer.net
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.