From 1ce451ad654a921f1bdd8e7c8c1cb235f83c6bdd Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 11 Sep 2006 23:58:52 +0000 Subject: [PATCH] less priority git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@2645 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch.c | 2 +- src/switch_core.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/switch.c b/src/switch.c index e9e88378a1..ee05e50ee5 100644 --- a/src/switch.c +++ b/src/switch.c @@ -62,7 +62,7 @@ static void set_high_priority() #ifdef WIN32 SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); #else - nice(-20); + //nice(-20); #endif } diff --git a/src/switch_core.c b/src/switch_core.c index 03dc21a14f..9035ebbc3f 100644 --- a/src/switch_core.c +++ b/src/switch_core.c @@ -3596,7 +3596,9 @@ SWITCH_DECLARE(switch_status_t) switch_core_init_and_modload(char *console, cons } #ifdef HAVE_MLOCKALL +#ifdef USE_MLOCKALL mlockall(MCL_CURRENT|MCL_FUTURE); +#endif #endif switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_CONSOLE, "\nFreeSWITCH Version %s Started.\nCrash Protection [%s]\nMax Sessions[%u]\n\n", SWITCH_VERSION_FULL, __CP, switch_core_session_limit(0));