1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-16 07:22:43 +01:00
nix/src/libstore/unix
eldritch horrors 03b258bf97 libutil: rename and optimize closeMostFDs
this is only used to close non-stdio files in derivation sandboxes. we
may as well encode that in its name, drop the unnecessary integer set,
and use close_range to deal with the actual closing of files. not only
is this clearer, it also makes sandbox setup on linux fast by 1ms each

(cherry-picked and adapted from
c7d97802e4)

Co-authored-by: Eelco Dolstra <edolstra@gmail.com>
Co-authored-by: Cole Helbling <cole.e.helbling@outlook.com>
Co-authored-by: John Ericson <git@JohnEricson.me>
2024-08-21 06:45:31 +02:00
..
build libutil: rename and optimize closeMostFDs 2024-08-21 06:45:31 +02:00
meson.build Build nix-store with Meson 2024-06-14 10:25:14 -04:00
pathlocks.cc Make abort() call sites log first 2024-07-24 16:52:04 +02:00
user-lock.cc Solve unused header warnings reported by clangd 2024-07-12 15:37:54 +02:00
user-lock.hh Solve unused header warnings reported by clangd 2024-07-12 15:37:54 +02:00