mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-05-02 14:48:22 +00:00
freeswitch: Create struct rlimit rlp where it is needed (move down into block scope).
Signed-off-by: Stefan Knoblich <stkn@openisdn.net>
This commit is contained in:
parent
93a429fc11
commit
edfbbb127c
@ -416,7 +416,6 @@ int main(int argc, char *argv[])
|
|||||||
switch_file_t *fd;
|
switch_file_t *fd;
|
||||||
switch_memory_pool_t *pool = NULL;
|
switch_memory_pool_t *pool = NULL;
|
||||||
#ifdef HAVE_SETRLIMIT
|
#ifdef HAVE_SETRLIMIT
|
||||||
struct rlimit rlp;
|
|
||||||
switch_bool_t waste = SWITCH_FALSE;
|
switch_bool_t waste = SWITCH_FALSE;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -573,6 +572,7 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SETRLIMIT
|
#ifdef HAVE_SETRLIMIT
|
||||||
else if (!strcmp(local_argv[x], "-core")) {
|
else if (!strcmp(local_argv[x], "-core")) {
|
||||||
|
struct rlimit rlp;
|
||||||
memset(&rlp, 0, sizeof(rlp));
|
memset(&rlp, 0, sizeof(rlp));
|
||||||
rlp.rlim_cur = RLIM_INFINITY;
|
rlp.rlim_cur = RLIM_INFINITY;
|
||||||
rlp.rlim_max = RLIM_INFINITY;
|
rlp.rlim_max = RLIM_INFINITY;
|
||||||
@ -789,7 +789,7 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
#if defined(HAVE_SETRLIMIT) && !defined(__sun)
|
#if defined(HAVE_SETRLIMIT) && !defined(__sun)
|
||||||
if (!waste && !(flags & SCF_VG)) {
|
if (!waste && !(flags & SCF_VG)) {
|
||||||
//int x;
|
struct rlimit rlp;
|
||||||
|
|
||||||
memset(&rlp, 0, sizeof(rlp));
|
memset(&rlp, 0, sizeof(rlp));
|
||||||
getrlimit(RLIMIT_STACK, &rlp);
|
getrlimit(RLIMIT_STACK, &rlp);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user