1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00
nix/src/libutil/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
..
environment-variables.cc Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
file-descriptor.cc libutil: rename and optimize closeMostFDs 2024-08-21 06:45:31 +02:00
file-path.cc Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
file-system.cc Build the local store on Windows 2024-05-10 13:05:23 -04:00
meson.build Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
monitor-fd.hh Make abort() call sites log first 2024-07-24 16:52:04 +02:00
muxable-pipe.cc More work on the scheduler for windows 2024-05-28 11:39:49 -04:00
os-string.cc Factor out lookupExecutable and other PATH improvments 2024-08-07 18:12:58 -04:00
processes.cc Make abort() call sites log first 2024-07-24 16:52:04 +02:00
signals-impl.hh Better signals interface 2024-04-05 01:38:28 -04:00
signals.cc Better signals interface 2024-04-05 01:38:28 -04:00
users.cc Start factoring out Unix assumptions 2024-04-02 14:43:38 -04:00