mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-23 04:51:16 -03:00
@@ -621,9 +621,10 @@ bool env_universal_t::open_and_acquire_lock(const wcstring &path, int *out_fd) {
|
||||
continue;
|
||||
}
|
||||
#ifdef O_EXLOCK
|
||||
else if (err == EOPNOTSUPP) {
|
||||
else if (err == ENOTSUP || err == EOPNOTSUPP) {
|
||||
// Filesystem probably does not support locking. Clear the flag and try again. Note
|
||||
// that we try taking the lock via flock anyways.
|
||||
// that we try taking the lock via flock anyways. Note that on Linux the two errno
|
||||
// symbols have the same value but on BSD they're different.
|
||||
flags &= ~O_EXLOCK;
|
||||
needs_lock = true;
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user