aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/build
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-10-05 11:04:46 +0200
committerEelco Dolstra <edolstra@gmail.com>2021-10-05 11:04:46 +0200
commit3b7f4c7d9d124283cec7f7d42e0eca3e2de64d5a (patch)
treef225ac5b06f92387d3b6763f1af84651625c5151 /src/libstore/build
parentd8a2f7f81d04c20eb6b7340c49e9a2d6b2dd2533 (diff)
Add FIXME about ptsname
Diffstat (limited to 'src/libstore/build')
-rw-r--r--src/libstore/build/local-derivation-goal.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libstore/build/local-derivation-goal.cc b/src/libstore/build/local-derivation-goal.cc
index 2ba1b3f59..4cb43bc11 100644
--- a/src/libstore/build/local-derivation-goal.cc
+++ b/src/libstore/build/local-derivation-goal.cc
@@ -711,6 +711,7 @@ void LocalDerivationGoal::startBuilder()
if (!builderOut.readSide)
throw SysError("opening pseudoterminal master");
+ // FIXME: not thread-safe, use ptsname_r
std::string slaveName(ptsname(builderOut.readSide.get()));
if (buildUser) {