]> git.ipfire.org Git - thirdparty/util-linux.git/commit - configure.ac
login: use close_range() system call when possible
authorSami Kerola <kerolasa@iki.fi>
Sat, 14 Nov 2020 12:55:10 +0000 (12:55 +0000)
committerSami Kerola <kerolasa@iki.fi>
Thu, 3 Dec 2020 20:09:14 +0000 (20:09 +0000)
commitf0649c0d83f30c7e2318ba0f578a55d875cca4d7
tree64ba201b006f339421a68570ee80f707bc4d411c
parent931e60982ef016481f51dfbcbc103a527ef2ab17
login: use close_range() system call when possible

This system call was added while back, but does not have glibc support yet.
Lets try to use the new facility early on.  The promise in reference link is
that the new call is faster, and works when /proc is not mounted.

Reference: https://lwn.net/Articles/789000/
Reference: https://lwn.net/Articles/789023/
Reference: https://kernelnewbies.org/LinuxChanges#Linux_5.9.New_close_range.28.29_system_call_for_easier_closing_of_file_descriptors
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
configure.ac
include/fileutils.h
login-utils/login.c