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