Another attempt at getting pseudoterminals to work on macOS

This commit is contained in:
Eelco Dolstra 2019-06-17 08:08:04 +02:00
parent 2743bf0bb1
commit 3cc1125595
No known key found for this signature in database
GPG Key ID: 8170B4726D7198DE
1 changed files with 3 additions and 0 deletions

View File

@ -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