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