- bring in a patch from upstream to fix applications config reload
This commit is contained in:
parent
b6ebf76c13
commit
7f607d8313
@ -1,4 +1,4 @@
|
||||
# $OpenBSD: Makefile,v 1.11 2008/06/08 02:49:00 robert Exp $
|
||||
# $OpenBSD: Makefile,v 1.12 2008/07/01 08:22:12 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
@ -6,7 +6,7 @@ COMMENT= portable Windows library
|
||||
|
||||
V= 1_12_0
|
||||
DISTNAME= ptlib-v${V}
|
||||
PKGNAME= pwlib-${V:S/_/./g}p3
|
||||
PKGNAME= pwlib-${V:S/_/./g}p4
|
||||
CATEGORIES= devel
|
||||
|
||||
EXTRACT_SUFX= -src.tar.gz
|
||||
|
16
devel/pwlib/patches/patch-src_ptlib_unix_config_cxx
Normal file
16
devel/pwlib/patches/patch-src_ptlib_unix_config_cxx
Normal file
@ -0,0 +1,16 @@
|
||||
$OpenBSD: patch-src_ptlib_unix_config_cxx,v 1.1 2008/07/01 08:22:12 ajacoutot Exp $
|
||||
--- src/ptlib/unix/config.cxx.orig Fri Oct 19 08:22:32 2007
|
||||
+++ src/ptlib/unix/config.cxx Tue Jul 1 10:09:52 2008
|
||||
@@ -546,9 +546,10 @@ void PXConfigDictionary::RemoveInstance(PXConfig * ins
|
||||
PINDEX index = GetObjectsIndex(instance);
|
||||
PAssert(index != P_MAX_INDEX, "Cannot find PXConfig instance to remove");
|
||||
|
||||
- // decrement the instance count, but don't remove it yet
|
||||
+ // decrement the instance count and remove it if this was the last instance
|
||||
PFilePath key = GetKeyAt(index);
|
||||
- instance->RemoveInstance(key);
|
||||
+ if (instance->RemoveInstance(key))
|
||||
+ RemoveAt(key);
|
||||
}
|
||||
|
||||
mutex.Signal();
|
Loading…
Reference in New Issue
Block a user