Bug 172278 - kdeinit startup stalls on linux with kernels without oom_adj
Summary: kdeinit startup stalls on linux with kernels without oom_adj
Status: RESOLVED FIXED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 3.5
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Lubos Lunak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-06 14:56 UTC by Geller, Sandor
Modified: 2009-09-30 14:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
proposed patch to fix the problem (444 bytes, patch)
2008-10-06 15:16 UTC, Geller, Sandor
Details
a somewhat better patch which calls lstat only once (508 bytes, patch)
2008-10-06 18:17 UTC, Geller, Sandor
Details

Note You need to log in before you can comment on or make changes to this bug.
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.