mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 17:48:20 +00:00
Darwin caused ipc mutex to stop working for non-darwin, non-windows systems. Hopefully fixed
This commit is contained in:
@@ -65,7 +65,12 @@ namespace EQEmu {
|
|||||||
O_RDWR | O_CREAT | O_CLOEXEC,
|
O_RDWR | O_CREAT | O_CLOEXEC,
|
||||||
S_IRUSR | S_IWUSR);
|
S_IRUSR | S_IWUSR);
|
||||||
#endif
|
#endif
|
||||||
|
#else
|
||||||
|
imp_->fd_ = open(final_name.c_str(),
|
||||||
|
O_RDWR | O_CREAT | O_CLOEXEC,
|
||||||
|
S_IRUSR | S_IWUSR);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(imp_->fd_ == -1) {
|
if(imp_->fd_ == -1) {
|
||||||
EQ_EXCEPT("IPC Mutex", "Could not create mutex.");
|
EQ_EXCEPT("IPC Mutex", "Could not create mutex.");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user