8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 22:43:03 +01:00

Correct non-Windows branch of code.

It should fix failed test functional/replication/test_invalid_msg_if_target_db_has_no_replica_flag
This commit is contained in:
Vlad Khorsun 2023-12-22 09:32:40 +02:00
parent 778e7c122b
commit c6b1d707a8

View File

@ -142,9 +142,9 @@ namespace
(WaitForSingleObject(m_mutex, INFINITE) == WAIT_OBJECT_0);
#else
#ifdef HAVE_FLOCK
flock(fileno(file), LOCK_EX);
flock(fileno(file), LOCK_EX) == 0;
#else
os_utils::lockf(fileno(file), F_LOCK, 0);
os_utils::lockf(fileno(file), F_LOCK, 0) == 0;
#endif
#endif