Skip to content

kdeinit: Use close_range for cleanup_fds if available

Fabian Vogt requested to merge work/fvogt/boo1207367 into kf5

With a large RLIMIT_NOFILE, calling close for each of those can take a while, up to several minutes. Use close_range if available to speed that up.

Downstream report: https://bugzilla.opensuse.org/show_bug.cgi?id=1207367

Edited by Fabian Vogt

Merge request reports