mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-27 00:06:16 +02:00
Re-enable sync_with_stdio
Otherwise writing to std::cerr is not thread-safe (in particular, lines will be randomly duplicated).
This commit is contained in:
parent
0f754280a4
commit
0ebe69dc67
1 changed files with 0 additions and 3 deletions
|
@ -117,9 +117,6 @@ void initNix()
|
||||||
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
std::cerr.rdbuf()->pubsetbuf(buf, sizeof(buf));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// FIXME: do we need this? It's not thread-safe.
|
|
||||||
std::ios::sync_with_stdio(false);
|
|
||||||
|
|
||||||
if (getEnv("IN_SYSTEMD") == "1")
|
if (getEnv("IN_SYSTEMD") == "1")
|
||||||
logType = ltSystemd;
|
logType = ltSystemd;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue