1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 00:11:17 +02:00

Fix a minor data race with _isInterrupted

This commit is contained in:
Alex Shabalin 2021-11-24 14:50:08 +01:00
parent 884674a8e2
commit 2970ca18bf
2 changed files with 2 additions and 2 deletions

View file

@ -1205,7 +1205,7 @@ void closeOnExec(int fd)
//////////////////////////////////////////////////////////////////////
bool _isInterrupted = false;
std::atomic<bool> _isInterrupted = false;
static thread_local bool interruptThrown = false;
thread_local std::function<bool()> interruptCheck;