Am Montag, 18. November 2013 um 23:01:49, schrieb Kornel Benko <kor...@lyx.org>
> Am Montag, 18. November 2013 um 22:29:05, schrieb Kornel Benko 
> <kor...@lyx.org>
> > Am Montag, 18. November 2013 um 21:55:48, schrieb Georg Baum 
> > <georg.b...@post.rwth-aachen.de>
> > > Kornel Benko wrote:
> > > 
> > > > Actually, good idea. Stupid me, I didn't think of it.
> > > > Still the question stays: Is it portable enough?
> > > 
> > > What exactly do you mean? Using a file for locking works fine on every OS 
> > > relevant for LyX. fnctl/flock is not portable, the actual locking 
> > > mechanism 
> > > needs to be OS dependent.
> > > 
> > 
> > That was, what I asked for.
> 
> Trying to lock with
>       open(lock_file.c_str(), O_CREAT|O_EXCL|O_SYNC|O_RDWR, 0666);
> seams to work here. So no fcntl anymore.
> Thanks.
> 

After more parallel testing, it does not work. There are cases, where
more processes are working, one of them still engaged in configuring.
 So some of the exports failed.

        Kornel

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to