mirror of
https://github.com/NixOS/nix
synced 2025-07-02 13:31:48 +02:00
init: Add flag to avoid loading configuration
This commit is contained in:
parent
8c4c2156bd
commit
e05b58b060
6 changed files with 27 additions and 7 deletions
|
@ -113,7 +113,7 @@ static void sigHandler(int signo) { }
|
|||
#endif
|
||||
|
||||
|
||||
void initNix()
|
||||
void initNix(bool loadConfig)
|
||||
{
|
||||
/* Turn on buffering for cerr. */
|
||||
#if HAVE_PUBSETBUF
|
||||
|
@ -121,7 +121,7 @@ void initNix()
|
|||
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
||||
#endif
|
||||
|
||||
initLibStore();
|
||||
initLibStore(loadConfig);
|
||||
|
||||
#ifndef _WIN32
|
||||
unix::startSignalHandlerThread();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue