[mythtv-commits] [MythTV/mythtv] 061af3: Use close_range() to close large numbers of files ...
David Engel
noreply at github.com
Sun Jun 30 18:15:06 UTC 2024
Branch: refs/heads/fixes/34
Home: https://github.com/MythTV/mythtv
Commit: 061af3b0aa9d44714cc9492b93453cc038806585
https://github.com/MythTV/mythtv/commit/061af3b0aa9d44714cc9492b93453cc038806585
Author: David Engel <dengel at mythtv.org>
Date: 2024-06-30 (Sun, 30 Jun 2024)
Changed paths:
M mythtv/configure
M mythtv/libs/libmythbase/mythsystemunix.cpp
M mythtv/libs/libmythtv/recorders/ExternalStreamHandler.cpp
M mythtv/programs/mythbackend/mythbackend.cpp
M mythtv/programs/mythpreviewgen/mythpreviewgen.cpp
Log Message:
-----------
Use close_range() to close large numbers of files when available.
close_range() is a newish, Linux and FreeBSD system call to close a
large range of file descriptors as is commonly done by the child
process after a fork. Linux now supports extremely large limits and
the traditional, brute force way of closing file descriptors can incur
a several minute delay in those situations. This change checks for
and uses close_range() when it is available.
(cherry picked from commit 8dbc67e783c0c0443a5711b4b595d2ca8c2f96cc)
To unsubscribe from these emails, change your notification settings at https://github.com/MythTV/mythtv/settings/notifications
More information about the mythtv-commits
mailing list