* Sat Apr 18 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.2-6

- squash leaky file descriptors in kdeinit (kde#180785,rhbz#484370)
This commit is contained in:
Rex Dieter 2009-04-18 22:53:41 +00:00
parent c88e72734d
commit 711e7c67c8
2 changed files with 22 additions and 1 deletions

View File

@ -0,0 +1,16 @@
--- branches/KDE/4.2/kdelibs/kinit/kinit.cpp 2009/03/25 12:32:32 944314
+++ branches/KDE/4.2/kdelibs/kinit/kinit.cpp 2009/04/18 19:34:41 955904
@@ -184,6 +184,12 @@
*/
static void close_fds()
{
+ while (struct child *child = children) {
+ close(child->sock);
+ children = child->next;
+ free(child);
+ }
+
if (d.deadpipe[0] != -1)
{
close(d.deadpipe[0]);

View File

@ -1,6 +1,6 @@
Summary: K Desktop Environment 4 - Libraries
Version: 4.2.2
Release: 5%{?dist}
Release: 6%{?dist}
%if 0%{?fedora} > 8
Name: kdelibs
@ -90,6 +90,7 @@ Patch26: kdelibs-4.2.2-plasma-focus.patch
Patch100: kdelibs-4.2.2-kio_http.patch
Patch101: kdelibs-4.2.2-kjob.patch
Patch102: kdelibs-4.2.2-bidi-kde#189161.patch
Patch103: kdelibs-4.2.2-kde#180785.patch
# 4.3 branch
Patch200: kdelibs-4.1.96-AllowExternalPaths.patch
@ -233,6 +234,7 @@ sed -i -e "s|@@VERSION_RELEASE@@|%{version}-%{release}|" kio/kio/kprotocolmanage
%patch100 -p0 -b .kio_http
%patch101 -p0 -b .kjob
%patch102 -p4 -b .bidi-kde#189161
%patch103 -p4 -b .kde#180785
# 4.3
%patch200 -p1 -b .AllowExternalPaths
@ -417,6 +419,9 @@ rm -rf %{buildroot}
%changelog
* Sat Apr 18 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.2-6
- squash leaky file descriptors in kdeinit (kde#180785,rhbz#484370)
* Fri Apr 10 2009 Rex Dieter <rdieter@fedoraproject.org> 4.2.2-5
- fix bidi-related hangs in khtml (kde#189161)