[svn-commits] jpeeler: branch 1.6.0 r183029 - in /branches/1.6.0: ./ channels/h323/
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Wed Mar 18 16:19:03 CDT 2009
Author: jpeeler
Date: Wed Mar 18 16:19:00 2009
New Revision: 183029
URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=183029
Log:
Merged revisions 183028 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r183028 | jpeeler | 2009-03-18 16:18:27 -0500 (Wed, 18 Mar 2009) | 4 lines
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:
branches/1.6.0/ (props changed)
branches/1.6.0/channels/h323/ast_h323.cxx
Propchange: branches/1.6.0/
------------------------------------------------------------------------------
Binary property 'trunk-merged' - no diff available.
Modified: branches/1.6.0/channels/h323/ast_h323.cxx
URL: http://svn.digium.com/svn-view/asterisk/branches/1.6.0/channels/h323/ast_h323.cxx?view=diff&rev=183029&r1=183028&r2=183029
==============================================================================
--- branches/1.6.0/channels/h323/ast_h323.cxx (original)
+++ branches/1.6.0/channels/h323/ast_h323.cxx Wed Mar 18 16:19:00 2009
@@ -87,7 +87,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
@@ -131,6 +132,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;
@@ -2669,6 +2674,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