Bug 172278

Summary: kdeinit startup stalls on linux with kernels without oom_adj
Product: [Frameworks and Libraries] kdelibs Reporter: Geller, Sandor <sandor.geller>
Component: generalAssignee: Lubos Lunak <l.lunak>
Status: RESOLVED FIXED    
Severity: normal CC: faure
Priority: NOR    
Version: 3.5   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: proposed patch to fix the problem
a somewhat better patch which calls lstat only once

Description Geller, Sandor 2008-10-06 14:56:56 UTC
Version:            (using KDE 3.5.10)
Compiler:          gcc 3.4.6 
OS:                Linux
Installed from:    Compiled From Sources

kinit/start_kdeinit of kdelibs 3.5.10 doesn't work correctly when the kernel doesn't support oom_adj. The kdeinit processes are stuck in read() while the last process of the chain waits for SIGUSR1 which never happens.
Comment 1 Geller, Sandor 2008-10-06 15:16:48 UTC
Created attachment 27716 [details]
proposed patch to fix the problem
Comment 2 Geller, Sandor 2008-10-06 18:17:17 UTC
Created attachment 27720 [details]
a somewhat better patch which calls lstat only once
Comment 3 David Faure 2009-09-18 02:44:05 UTC
Lubos, seems to be your code, can you have a look at the patch?
Comment 4 Lubos Lunak 2009-09-30 14:44:31 UTC
This has been already fixed with r859452 in a different way.