forked from lix-project/lix
Another attempt at getting pseudoterminals to work on macOS
This commit is contained in:
parent
2743bf0bb1
commit
3cc1125595
|
@ -2196,6 +2196,9 @@ void DerivationGoal::startBuilder()
|
||||||
|
|
||||||
if (chown(slaveName.c_str(), buildUser->getUID(), 0))
|
if (chown(slaveName.c_str(), buildUser->getUID(), 0))
|
||||||
throw SysError("changing owner of pseudoterminal slave");
|
throw SysError("changing owner of pseudoterminal slave");
|
||||||
|
} else {
|
||||||
|
if (grantpt(builderOut.readSide.get()))
|
||||||
|
throw SysError("granting access to pseudoterminal slave");
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
|
|
Loading…
Reference in a new issue