mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 10:31:29 +00:00
Fix for linux ipc mutex
This commit is contained in:
parent
3092286604
commit
7e63135a3d
@ -92,7 +92,9 @@ namespace EQEmu {
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
lockf(imp_->fd_, F_TLOCK, 0);
|
||||
if(lockf(imp_->fd_, F_LOCK, 0) != 0) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
locked_ = true;
|
||||
return true;
|
||||
@ -107,7 +109,9 @@ namespace EQEmu {
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
lockf(imp_->fd_, F_ULOCK, 0);
|
||||
if(lockf(imp_->fd_, F_ULOCK, 0) != 0) {
|
||||
return false;
|
||||
}
|
||||
#endif
|
||||
locked_ = false;
|
||||
return true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user