https://bugs.kde.org/show_bug.cgi?id=402540
--- Comment #1 from Reimar Döffinger <k...@reimardoeffinger.de> --- After some thinking I am a bit concerned that this code might be quite buggy anyway. It seems to me it would be possible for a program to open thousands of files and the set the hard ulimit to 10 (as far as I can tell the ulimit is only checked on open), and this code would fail to close all files. While non-portable, the proc/self/fd based approach seems more reliable on Linux, and even on other OS there probably should be a check to not allow a maxfd value below some of the traditional limits like 1000, as that might indicate someone trying to trick kdeinit into failing to close all fds (not sure there is any way to actually misuse this though). -- You are receiving this mail because: You are watching all bug changes.