Revision: 6105
http://ipcop.svn.sourceforge.net/ipcop/?rev=6105&view=rev
Author: owes
Date: 2011-11-17 22:17:57 +0000 (Thu, 17 Nov 2011)
Log Message:
-----------
Upgrade rsyslog to 5.8.6
Added Paths:
-----------
ipcop/trunk/src/patches/rsyslog-5.8.6_stack-size.patch
Removed Paths:
-------------
ipcop/trunk/src/patches/rsyslog-5.6.5_stack-size.patch
Deleted: ipcop/trunk/src/patches/rsyslog-5.6.5_stack-size.patch
===================================================================
--- ipcop/trunk/src/patches/rsyslog-5.6.5_stack-size.patch 2011-11-17
22:17:18 UTC (rev 6104)
+++ ipcop/trunk/src/patches/rsyslog-5.6.5_stack-size.patch 2011-11-17
22:17:57 UTC (rev 6105)
@@ -1,36 +0,0 @@
---- rsyslog-4.4.2/threads.c.orig 2010-01-11 09:20:44.000000000 +0100
-+++ rsyslog-4.4.2/threads.c 2010-01-11 09:27:23.000000000 +0100
-@@ -39,6 +39,8 @@
- #include "threads.h"
- #include "srUtils.h"
-
-+static pthread_attr_t pthreadGlobalAttr;
-+
- /* linked list of currently-known threads */
- static linkedList_t llThrds;
-
-@@ -221,7 +221,11 @@
- pThis->pUsrThrdMain = thrdMain;
- pThis->pAfterRun = afterRun;
- pThis->bNeedsCancel = bNeedsCancel;
-+
-+ /* Give threads a smaller stack, 512 KiB should be sufficient */
-+ pthread_attr_init(&pthreadGlobalAttr);
-+ pthread_attr_setstacksize(&pthreadGlobalAttr, 512 * 1024);
-- pthread_create(&pThis->thrdID, NULL, thrdStarter, pThis);
-+ pthread_create(&pThis->thrdID, &pthreadGlobalAttr, thrdStarter, pThis);
- CHKiRet(llAppend(&llThrds, NULL, pThis));
-
- finalize_it:
---- rsyslog-4.4.2/runtime/wtp.c.orig 2010-01-11 10:21:53.000000000 +0100
-+++ rsyslog-4.4.2/runtime/wtp.c 2010-01-11 10:24:51.000000000 +0100
-@@ -422,6 +422,9 @@
-
- pWti = pThis->pWrkr[i];
- wtiSetState(pWti, WRKTHRD_RUNNING);
-+
-+ /* Give threads a smaller stack, 512 KiB should be sufficient */
-+ pthread_attr_setstacksize(&pThis->attrThrd, 512 * 1024);
- iState = pthread_create(&(pWti->thrdID), &pThis->attrThrd, wtpWorker,
(void*) pWti);
- ATOMIC_INC(&pThis->iCurNumWrkThrd, &pThis->mutCurNumWrkThrd); /* we got
one more! */
-
Copied: ipcop/trunk/src/patches/rsyslog-5.8.6_stack-size.patch (from rev 6100,
ipcop/trunk/src/patches/rsyslog-5.6.5_stack-size.patch)
===================================================================
--- ipcop/trunk/src/patches/rsyslog-5.8.6_stack-size.patch
(rev 0)
+++ ipcop/trunk/src/patches/rsyslog-5.8.6_stack-size.patch 2011-11-17
22:17:57 UTC (rev 6105)
@@ -0,0 +1,23 @@
+--- rsyslog-4.4.2/runtime/wtp.c.orig 2010-01-11 10:21:53.000000000 +0100
++++ rsyslog-4.4.2/runtime/wtp.c 2010-01-11 10:24:51.000000000 +0100
+@@ -422,6 +422,9 @@
+
+ pWti = pThis->pWrkr[i];
+ wtiSetState(pWti, WRKTHRD_RUNNING);
++
++ /* Give threads a smaller stack, 512 KiB should be sufficient */
++ pthread_attr_setstacksize(&pThis->attrThrd, 512 * 1024);
+ iState = pthread_create(&(pWti->thrdID), &pThis->attrThrd, wtpWorker,
(void*) pWti);
+ ATOMIC_INC(&pThis->iCurNumWrkThrd, &pThis->mutCurNumWrkThrd); /* we got
one more! */
+
+--- rsyslog-5.8.6/runtime/rsyslog.c.orig 2011-11-17 22:09:21.000000000
+0100
++++ rsyslog-5.8.6/runtime/rsyslog.c 2011-11-17 22:10:24.000000000 +0100
+@@ -150,6 +150,8 @@ rsrtInit(char **ppErrObj, obj_if_t *pObj
+ &default_thr_sched_policy,
+ &default_sched_param));
+ CHKiRet(pthread_attr_init(&default_thread_attr));
++ /* Give threads a smaller stack, 512 KiB should be sufficient */
++ CHKiRet(pthread_attr_setstacksize(&default_thread_attr, 512 *
1024));
+ CHKiRet(pthread_attr_setschedpolicy(&default_thread_attr,
+ default_thr_sched_policy));
+ CHKiRet(pthread_attr_setschedparam(&default_thread_attr,
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Ipcop-svn mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ipcop-svn