Don't wait for PID -1
The pid field can be -1 if forking the substituter process failed.
This commit is contained in:
parent
ad332e1718
commit
e529823635
1 changed files with 2 additions and 1 deletions
|
@ -358,6 +358,7 @@ LocalStore::~LocalStore()
|
||||||
i->second.to.close();
|
i->second.to.close();
|
||||||
i->second.from.close();
|
i->second.from.close();
|
||||||
i->second.error.close();
|
i->second.error.close();
|
||||||
|
if (i->second.pid != -1)
|
||||||
i->second.pid.wait(true);
|
i->second.pid.wait(true);
|
||||||
}
|
}
|
||||||
} catch (...) {
|
} catch (...) {
|
||||||
|
|
Loading…
Reference in a new issue