mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-08-14 01:49:05 +00:00
BSD fixes, thanks jontow for the use of your box
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7105 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -705,10 +705,19 @@ SWITCH_DECLARE(switch_status_t) switch_core_init(switch_core_flag_t flags, switc
|
||||
{
|
||||
struct rlimit rlp;
|
||||
|
||||
/*
|
||||
Setting the stack size on FreeBSD results in an instant crash.
|
||||
|
||||
If anyone knows how to fix this,
|
||||
feel free to submit a patch to http://jira.freeswitch.org
|
||||
*/
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
memset(&rlp, 0, sizeof(rlp));
|
||||
rlp.rlim_cur = SWITCH_THREAD_STACKSIZE;
|
||||
rlp.rlim_max = SWITCH_THREAD_STACKSIZE;
|
||||
setrlimit(RLIMIT_STACK, &rlp);
|
||||
#endif
|
||||
|
||||
memset(&rlp, 0, sizeof(rlp));
|
||||
rlp.rlim_cur = 999999;
|
||||
|
Reference in New Issue
Block a user