1
diff -ruN pd-0.38-4-old/src/s_inter.c pd-0.38-4/src/s_inter.c
2
--- pd-0.38-4-old/src/s_inter.c 2005-01-07 19:15:05.000000000 +0100
3
+++ pd-0.38-4/src/s_inter.c 2005-04-08 16:26:39.773263512 +0200
6
#if defined(_POSIX_PRIORITY_SCHEDULING) || defined(_POSIX_MEMLOCK)
9
+#include <sys/resource.h>
12
void sys_set_priority(int higher)
17
+ /* tb: force memlock to physical memory { */
18
+ struct rlimit mlock_limit;
19
+ mlock_limit.rlim_cur=0;
20
+ mlock_limit.rlim_max=0;
21
+ setrlimit(RLIMIT_MEMLOCK,&mlock_limit);
24
if (mlockall(MCL_FUTURE) != -1)
25
fprintf(stderr, "memory locking enabled.\n");