Re: mbox ownership

'Mark Overmeer' <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.mail-box
Organization MARKOV Solutions
Message-ID <[email protected]>
* 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.