Skip to content

Commit a22f20e

Browse files
committed
Don't dlclose plugins, as some may have atexit handlers
1 parent 701548a commit a22f20e

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- tdnf-3.0.0-beta/client/plugins.c.orig 2021-11-19 14:57:30.307988836 +0000
2+
+++ tdnf-3.0.0-beta/client/plugins.c 2021-11-19 14:57:15.299176437 +0000
3+
@@ -197,7 +197,7 @@
4+
}
5+
if (pPlugin->pModule)
6+
{
7+
- dlclose(pPlugin->pModule);
8+
+ //dlclose(pPlugin->pModule);
9+
}
10+
}
11+

packages/tdnf/SPECS/tdnf.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Summary: dnf/yum equivalent using C libs
66
Name: tdnf
77
Version: 3.0.0
8-
Release: 5%{?dist}
8+
Release: 6%{?dist}
99
Vendor: VMware, Inc.
1010
Distribution: Photon
1111
License: LGPLv2.1,GPLv2
@@ -44,6 +44,7 @@ Patch104: tdnf-client.sgifixes.patch
4444
Patch105: tdnf-common-utils.sgifixes.patch
4545
Patch106: tdnf-client-rpmtrans.sgifixes.patch
4646
Patch107: tdnf-printfprecision.sgifixes.patch
47+
Patch108: tdnf-no-dlclose-plugins.patch
4748

4849
%description
4950
tdnf is a yum/dnf equivalent which uses libsolv and libcurl

0 commit comments

Comments
 (0)