Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 157 Bytes
#include <stdio.h>
#include <sys/mman.h>
void __attribute__((constructor)) init() {
if(mlockall(MCL_CURRENT|MCL_FUTURE)) {
perror("mlockall");
}
}