summaryrefslogtreecommitdiffstats
path: root/util/system/mlock.cpp
diff options
context:
space:
mode:
authororivej <[email protected]>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /util/system/mlock.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'util/system/mlock.cpp')
-rw-r--r--util/system/mlock.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/system/mlock.cpp b/util/system/mlock.cpp
index c70f8f33512..435338c98fb 100644
--- a/util/system/mlock.cpp
+++ b/util/system/mlock.cpp
@@ -66,9 +66,9 @@ void LockAllMemory(ELockAllMemoryFlags flags) {
if (flags & LockFutureMemory) {
sys_flags |= MCL_FUTURE;
}
- if (flags & LockMemoryOnFault) {
- sys_flags |= MCL_ONFAULT;
- }
+ if (flags & LockMemoryOnFault) {
+ sys_flags |= MCL_ONFAULT;
+ }
if (mlockall(sys_flags)) {
ythrow yexception() << LastSystemErrorText();
}