mirror of
https://github.com/NixOS/nix
synced 2025-06-28 17:51:15 +02:00
nix-daemon: Call exit(), not _exit()
This was preventing destructors from running. In particular, it was
preventing the deletion of the temproot file for each worker
process. It may also have been responsible for the excessive WAL
growth on Hydra (due to the SQLite database not being closed
properly).
Apparently broken by accident in
8e9140cfde
.
This commit is contained in:
parent
1256ab3b44
commit
a3e5c99d66
3 changed files with 8 additions and 5 deletions
|
@ -820,8 +820,8 @@ static void daemonLoop(char * * argv)
|
|||
to.fd = remote;
|
||||
processConnection(trusted);
|
||||
|
||||
_exit(0);
|
||||
}, false, "unexpected Nix daemon error: ");
|
||||
exit(0);
|
||||
}, false, "unexpected Nix daemon error: ", true);
|
||||
|
||||
} catch (Interrupted & e) {
|
||||
throw;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue