#include "util.hh" #include "processes.hh" #include "strings.hh" #include "current-process.hh" #include "sync.hh" #include "finally.hh" #include "serialise.hh" #include "cgroup.hh" #include "signals.hh" #include "environment-variables.hh" #include "file-system.hh" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #ifdef __APPLE__ #include #include #endif #ifdef __linux__ #include #include #include #include #endif #ifdef NDEBUG #error "Lix may not be built with assertions disabled (i.e. with -DNDEBUG)." #endif namespace nix { ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////// void ignoreException(Verbosity lvl) { /* Make sure no exceptions leave this function. printError() also throws when remote is closed. */ try { try { throw; } catch (std::exception & e) { printMsg(lvl, "error (ignored): %1%", e.what()); } } catch (...) { } } ////////////////////////////////////////////////////////////////////// }