[torquedev] mlockall on OS X

Glen Beane glen.beane at gmail.com
Sat Dec 9 14:16:18 MST 2006


looks like now that pbs_mom uses mlockall if _POSIX_MEMLOCK is defined
pbs_mom is broken on OSX.  It appears _POSIX_MEMLOCK is defined in
unistd.h but when mlockall is actually called it returns with an
error: "pbs_mom:mom_main.c:mlockall():: Function not implemented",
and then pbs_mom exits.

I've had to #undef _POSIX_MEMLOCK in mom_main.c:

#ifdef __APPLE__
#undef _POSIX_MEMLOCK
#endif


it looks like this change to test for _POSIX_MEMLOCK was made in
TORQUE 2.2,  so OS X users beware


More information about the torquedev mailing list