From 1cef731537f9e01735d8f0b49424c391698ef5f3 Mon Sep 17 00:00:00 2001 From: Pavel Pisa Date: Fri, 3 Apr 2015 14:46:07 +0200 Subject: [PATCH] Ensure that mlockall() applies even to already mapped pages. Signed-off-by: Pavel Pisa --- ert_linux/ert_linux_main.tlc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ert_linux/ert_linux_main.tlc b/ert_linux/ert_linux_main.tlc index ea4bf4b..85830b6 100644 --- a/ert_linux/ert_linux_main.tlc +++ b/ert_linux/ert_linux_main.tlc @@ -242,7 +242,7 @@ (void *)(argv); %endif - CHECKE(mlockall(MCL_FUTURE)); + CHECKE(mlockall(MCL_CURRENT | MCL_FUTURE)); /* Initialize model */ %_initialize(); -- 2.39.2