#define _XOPEN_SOURCE
#include <unistd.h>
#include <stdio.h>
#include <sys/mman.h>
int main(void)
{
mlockall(MCL_CURRENT);
printf("Do something...\n");
exit(0);
}
You should get a seg fault. I've only tested this on Alpha, but I'm
sure it's there for all architectures. Can someone fix this? It's
keeping me from developing real-time apps in Linux. Richard Henderson,
and others have a patch for this, (which works) but it's not in the
production source tree yet. :-( Can someone create (or get) the patch
and submit it to Linus?
-- .______________________________________________________________________. | Michael Champigny - Software Engineer | | | | | | | | | Alpha CAD Physical Analysis | d | i | g | i | t | a | l | |__________________________________________|___|___|___|___|___|___|___|