mirror of
https://github.com/NixOS/nix
synced 2025-06-29 10:31:15 +02:00
* Set a terminate() handler to ensure that we leave the BDB
environment cleanly even when an exception is thrown from a destructor. We still crash, but we don't take all other Nix processes with us.
This commit is contained in:
parent
644946feed
commit
cbfac2fdcc
6 changed files with 55 additions and 8 deletions
|
@ -280,6 +280,11 @@ string int2String(int n);
|
|||
bool string2Int(const string & s, int & n);
|
||||
|
||||
|
||||
/* Exception handling in destructors: print an error message, then
|
||||
ignore the exception. */
|
||||
void ignoreException();
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue