From 05607e31243e5e85a3801d4513192bb1f2150b14 Mon Sep 17 00:00:00 2001 From: Miller Puckette Date: Mon, 30 May 2005 03:04:19 +0000 Subject: Remembered to update all the edited files. Should now be in sync... will have to test it though. svn path=/trunk/; revision=3092 --- pd/src/s_inter.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'pd/src/s_inter.c') diff --git a/pd/src/s_inter.c b/pd/src/s_inter.c index 3a659080..f95dbc50 100644 --- a/pd/src/s_inter.c +++ b/pd/src/s_inter.c @@ -18,6 +18,7 @@ that didn't really belong anywhere. */ #include #include #include +#include #endif #ifdef HAVE_BSTRING_H #include @@ -278,6 +279,12 @@ void sys_set_priority(int higher) #endif #ifdef _POSIX_MEMLOCK + /* tb: force memlock to physical memory { */ + struct rlimit mlock_limit; + mlock_limit.rlim_cur=0; + mlock_limit.rlim_max=0; + setrlimit(RLIMIT_MEMLOCK,&mlock_limit); + /* } tb */ if (mlockall(MCL_FUTURE) != -1) fprintf(stderr, "memory locking enabled.\n"); #endif -- cgit v1.2.1