1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-23 02:39:37 +01:00

Merge pull request #10852 from siddhantk232/add-interrupts

add call to `checkInterrupt` in a bunch of places
This commit is contained in:
Eelco Dolstra 2024-06-04 17:21:03 +02:00 committed by GitHub
commit ef140c25d1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 29 additions and 3 deletions

View file

@ -1,5 +1,6 @@
#include "buildenv.hh"
#include "derivations.hh"
#include "signals.hh"
#include <sys/stat.h>
#include <sys/types.h>
@ -30,6 +31,7 @@ static void createLinks(State & state, const Path & srcDir, const Path & dstDir,
}
for (const auto & ent : srcFiles) {
checkInterrupt();
auto name = ent.path().filename();
if (name.string()[0] == '.')
/* not matched by glob */