nix-daemon: Simplify stderr handling
This commit is contained in:
parent
78224cd871
commit
d0fad1779f
2 changed files with 2 additions and 7 deletions
|
@ -850,6 +850,7 @@ pid_t startProcess(std::function<void()> fun, const string & errorPrefix)
|
|||
if (pid == -1) throw SysError("unable to fork");
|
||||
|
||||
if (pid == 0) {
|
||||
_writeToStderr = defaultWriteToStderr;
|
||||
try {
|
||||
restoreAffinity();
|
||||
fun();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue