bug-autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: autoconf 2.57b: locking fails over NFS


From: Andreas Schwab
Subject: Re: autoconf 2.57b: locking fails over NFS
Date: Wed, 24 Sep 2003 23:28:33 +0200
User-agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3.50 (gnu/linux)

Paul Eggert <address@hidden> writes:

> Andreas Schwab <address@hidden> writes:
>
>> On some systems (eg. Linux) flock(2) does not work over network, but Perl
>> prefers that over fcntl(2) if it exists.  So autoconf may fail on NFS if
>> the filesystem has been mounted with locking enabled.
>
> Thanks.  What error code does flock return in that case?

It returns ENOLCK ("No locks available").

> Perhaps we can detect that particular failure, and try fcntl instead.

Note that flock is a generic perl interface that may be implemented with
flock(2) or fcntl(2) or lockf(3), depending on what is available on the
host.  See perlfunc(1).

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N├╝rnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]