Add FIXME about ptsname

This commit is contained in:
Eelco Dolstra 2021-10-05 11:04:46 +02:00
parent d8a2f7f81d
commit 3b7f4c7d9d

View file

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