mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-13 17:38:59 +00:00
add mlockall
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1584 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -32,6 +32,9 @@
|
||||
|
||||
#include <switch.h>
|
||||
#include <switch_version.h>
|
||||
#ifdef HAVE_MLOCKALL
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
|
||||
static int RUNNING = 0;
|
||||
|
||||
@@ -81,6 +84,10 @@ int main(int argc, char *argv[])
|
||||
//nice(-20);
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_MLOCKALL
|
||||
mlockall(MCL_CURRENT|MCL_FUTURE);
|
||||
#endif
|
||||
|
||||
#ifndef WIN32
|
||||
if (argv[1] && !strcmp(argv[1], "-stop")) {
|
||||
pid_t pid = 0;
|
||||
|
Reference in New Issue
Block a user