Skip to content

Commit

Permalink
Merge pull request #3547 from nlewo/grantpt
Browse files Browse the repository at this point in the history
Only call grantpt on MacOS systems
  • Loading branch information
edolstra authored Apr 29, 2020
2 parents 06849c3 + ca93b26 commit aeb406d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2250,10 +2250,13 @@ void DerivationGoal::startBuilder()

if (chown(slaveName.c_str(), buildUser->getUID(), 0))
throw SysError("changing owner of pseudoterminal slave");
} else {
}
#if __APPLE__
else {
if (grantpt(builderOut.readSide.get()))
throw SysError("granting access to pseudoterminal slave");
}
#endif

#if 0
// Mount the pt in the sandbox so that the "tty" command works.
Expand Down

0 comments on commit aeb406d

Please sign in to comment.