* Thu Nov 20 2008 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-2

- upstream patch to fix hang on login (for older kernels)
This commit is contained in:
Rex Dieter 2008-11-20 21:58:30 +00:00
parent accd83f770
commit c094bc024f
2 changed files with 27 additions and 1 deletions

20
kdelibs-3.5.10-proc.patch Normal file
View File

@ -0,0 +1,20 @@
diff -up kdelibs-3.5.10/kinit/start_kdeinit.c.proc kdelibs-3.5.10/kinit/start_kdeinit.c
--- kdelibs-3.5.10/kinit/start_kdeinit.c.proc 2008-08-19 13:18:12.000000000 -0500
+++ kdelibs-3.5.10/kinit/start_kdeinit.c 2008-11-20 15:54:54.000000000 -0600
@@ -44,7 +44,7 @@ static int set_protection( pid_t pid, in
{
char buf[ 1024 ];
int procfile;
- sprintf( buf, "/proc/%d/oom_adj", pid );
+ sprintf( buf, "/proc/%d/stat", pid );
if( !enable ) {
/* Be paranoid and check that the pid we got from the pipe
belongs to this user. */
@@ -52,6 +52,7 @@ static int set_protection( pid_t pid, in
if( lstat( buf, &st ) < 0 || st.st_uid != getuid())
return 0;
}
+ sprintf( buf, "/proc/%d/oom_adj", pid );
procfile = open( buf, O_WRONLY );
if( procfile >= 0 ) {
if( enable )

View File

@ -36,7 +36,7 @@
Summary: K Desktop Environment 3 - Libraries
Version: 3.5.10
Release: 1%{?dist}
Release: 2%{?dist}
%if 0%{?fedora} > 8
Name: kdelibs3
@ -93,6 +93,8 @@ Patch54: kdelibs-3.5.9-fix-flock-redefinition.patch
Patch100: kdelibs-3.5.5-kstandarddirs.patch
# http://bugs.kde.org/93359, alternative to export libltdl_cv_shlibext=".so" hack.
Patch101: kde-3.5-libtool-shlibext.patch
# fix for old kernels, prevents hang on login
Patch102: kdelibs-3.5.10-proc.patch
# kget ignores simultaneous download limit (kde #101956)
Patch103: kdelibs-3.5.0-101956.patch
@ -273,6 +275,7 @@ format for easy browsing
%patch101 -p1 -b .libtool-shlibext
# upstream patches
%patch102 -p1 -b .proc
sed -i -e "s,^#define KDE_VERSION_STRING .*,#define KDE_VERSION_STRING \"%{version}-%{release} %{distname}\"," kdecore/kdeversion.h
@ -625,6 +628,9 @@ touch --no-create %{_datadir}/icons/crystalsvg 2> /dev/null || :
%changelog
* Thu Nov 20 2008 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-2
- upstream patch to fix hang on login (for older kernels)
* Tue Aug 26 2008 Rex Dieter <rdieter@fedoraproject.org> 3.5.10-1
- kde-3.5.10