[svn-commits] jpeeler: trunk r183028 - /trunk/channels/h323/ast_h323.cxx
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Mar 18 16:18:30 CDT 2009
Author: jpeeler
Date: Wed Mar 18 16:18:27 2009
New Revision: 183028
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183028
Log:
Add some code removed by mistake from commit 182722 that works around a file
descriptor leak in versions of PWLib prior to 1.12.0.
Modified:
trunk/channels/h323/ast_h323.cxx
Modified: trunk/channels/h323/ast_h323.cxx
URL: http://svn.digium.com/svn-view/asterisk/trunk/channels/h323/ast_h323.cxx?view=diff&rev=183028&r1=183027&r2=183028
==============================================================================
--- trunk/channels/h323/ast_h323.cxx (original)
+++ trunk/channels/h323/ast_h323.cxx Wed Mar 18 16:18:27 2009
@@ -88,7 +88,8 @@
#include "cisco-h225.h"
#include "caps_h323.h"
-#if VERSION(PWLIB_MAJOR, PWLIB_MINOR, PWLIB_BUILD) >= VERSION(1,12,0)
+/* PWLIB_MAJOR renamed to PTLIB_MAJOR in 2.x.x */
+#if (defined(PTLIB_MAJOR) || VERSION(PWLIB_MAJOR, PWLIB_MINOR, PWLIB_BUILD) >= VERSION(1,12,0))
#define SKIP_PWLIB_PIPE_BUG_WORKAROUND 1
#endif
@@ -132,6 +133,10 @@
* FIXME: Singleton this, for safety
*/
static MyH323EndPoint *endPoint = NULL;
+
+#ifndef SKIP_PWLIB_PIPE_BUG_WORKAROUND
+static int _timerChangePipe[2];
+#endif
static unsigned traceOptions = PTrace::Timestamp | PTrace::Thread | PTrace::FileAndLine;
@@ -2670,6 +2675,10 @@
delete endPoint;
endPoint = NULL;
}
+#ifndef SKIP_PWLIB_PIPE_BUG_WORKAROUND
+ close(_timerChangePipe[0]);
+ close(_timerChangePipe[1]);
+#endif
if (logstream) {
delete logstream;
logstream = NULL;
More information about the svn-commits
mailing list