Skip to content

Commit

Permalink
Another attempt at getting pseudoterminals to work on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Jun 17, 2019
1 parent 2743bf0 commit 3cc1125
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/libstore/build.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cc1125

Please sign in to comment.