diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-01 16:57:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2020-08-01 17:53:53 -0700 |
commit | e54e3f907b024c7fa7fe3af9a5383f4b153e8fba (patch) | |
tree | ad60f01328d21634429063a2eb8a02724f11b55d /lib | |
parent | e30ed262092b809899bd545bc418719c5e8a384a (diff) | |
download | autoconf-e54e3f907b024c7fa7fe3af9a5383f4b153e8fba.tar.gz |
make fetch
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Autom4te/XFile.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Autom4te/XFile.pm b/lib/Autom4te/XFile.pm index feebce0e..b125a798 100644 --- a/lib/Autom4te/XFile.pm +++ b/lib/Autom4te/XFile.pm @@ -232,7 +232,8 @@ sub lock # Unless explicitly configured otherwise, Perl implements its 'flock' with the # first of flock(2), fcntl(2), or lockf(3) that works. These can fail on - # NFS-backed files, with ENOLCK (GNU/Linux) or EOPNOTSUPP (FreeBSD); we + # NFS-backed files, with ENOLCK (GNU/Linux) or EOPNOTSUPP (FreeBSD) or + # EINVAL (OpenIndiana, as per POSIX 1003.1-2017 fcntl spec); we # usually ignore these errors. If $ENV{MAKEFLAGS} suggests that a parallel # invocation of 'make' has invoked the tool we serve, report all locking # failures and abort. @@ -251,7 +252,7 @@ sub lock msg ($make_j ? 'fatal' : 'unsupported', "cannot lock $file with mode $mode: $!" . ($make_j ? $note : "")) - if $make_j || !($!{ENOLCK} || $!{EOPNOTSUPP}); + if $make_j || !($!{EINVAL} || $!{ENOLCK} || $!{EOPNOTSUPP}); } } |