From: Pavel Pisa Date: Fri, 3 Apr 2015 12:46:07 +0000 (+0200) Subject: Ensure that mlockall() applies even to already mapped pages. X-Git-Url: http://rtime.felk.cvut.cz/gitweb/ert_linux.git/commitdiff_plain/1cef731537f9e01735d8f0b49424c391698ef5f3 Ensure that mlockall() applies even to already mapped pages. Signed-off-by: Pavel Pisa --- 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();