Bug#917167: systemd: 240 breaks kde (rakes ages to launch)
Baptiste BEAUPLAT
lyknode at cilg.org
Sun Dec 23 17:27:34 GMT 2018
Dear maintainers,
This issue seems related to #917168, feel free to merge it.
For the 100% cpu, I think the problem is here in kinit:
https://github.com/KDE/kinit/blob/master/src/kdeinit/kinit.cpp#L163
```c
/*
* Clean up the file descriptor table by closing all file descriptors
* that are still open.
*
* This function is called very early in the main() function, so that
* we don't leak anything that was leaked to us.
*/
static void cleanup_fds()
{
int maxfd = FD_SETSIZE;
struct rlimit rl;
if (getrlimit(RLIMIT_NOFILE, &rl) == 0) {
maxfd = rl.rlim_max;
}
for (int fd = 3; fd < maxfd; ++fd) {
#if KDEINIT_OOM_PROTECT
if (fd != oom_pipe)
#endif
close(fd);
}
}
```
Has anything changed on the limits?
best regards,
--
Baptiste BEAUPLAT - lyknode
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20181223/a7ab402b/attachment.sig>
More information about the Pkg-systemd-maintainers
mailing list