]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-395
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 30 Jun 2009 20:01:48 +0000 (20:01 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 30 Jun 2009 20:01:48 +0000 (20:01 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@14058 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch.c

index c238b5927685d6c3e6660ab382d0bbf43fbe0d08..aa3d415b96c0ec93011162fc032729bcf6a91e8d 100644 (file)
@@ -623,12 +623,15 @@ int main(int argc, char *argv[])
                if (rlp.rlim_max > SWITCH_THREAD_STACKSIZE) {
                        char buf[1024] = "";
                        int i = 0;
+
+                       fprintf(stderr, "Error: stacksize %d is too large: run ulimit -s %d or run %s -waste.\nauto-adjusting stack size for optimal performance....\n", 
+                                       (int)(rlp.rlim_max / 1024), SWITCH_THREAD_STACKSIZE / 1024, argv[0]);
+
                        memset(&rlp, 0, sizeof(rlp));
                        rlp.rlim_cur = SWITCH_THREAD_STACKSIZE;
                        rlp.rlim_max = SWITCH_THREAD_STACKSIZE;
                        setrlimit(RLIMIT_STACK, &rlp);
-                       fprintf(stderr, "Error: stacksize %d is too large: run ulimit -s %d or run %s -waste.\nauto-adjusting stack size for optimal performance....\n", 
-                                       (int)(rlp.rlim_max / 1024), SWITCH_THREAD_STACKSIZE / 1024, argv[0]);
+
                        apr_terminate();
                        ret = (int)execv(argv[0], argv);