Skip to content

Commit 3cc1125

Browse files
committed
Another attempt at getting pseudoterminals to work on macOS
1 parent 2743bf0 commit 3cc1125

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/libstore/build.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2196,6 +2196,9 @@ void DerivationGoal::startBuilder()
21962196

21972197
if (chown(slaveName.c_str(), buildUser->getUID(), 0))
21982198
throw SysError("changing owner of pseudoterminal slave");
2199+
} else {
2200+
if (grantpt(builderOut.readSide.get()))
2201+
throw SysError("granting access to pseudoterminal slave");
21992202
}
22002203

22012204
#if 0

0 commit comments

Comments
 (0)