Race in isTTY?
ammario opened this issue · 5 comments
ammario commented
We just saw this data race in coder/coder.
I'm assuming it was introduced here #167, but haven't thoroughly investigated.
mafredri commented
mafredri commented
Actually, perhaps the fix in #167 was incomplete, it seems syncwriter always(?) wraps the writer, but does not implement Scratch that, it seems SyscallConn
, so the fix was never effective and reverted to the old unsafe behavior.w2
(unwrapped) is what's passed to entryhuman.Fmt
, so that does not seem to be the problem.
mafredri commented
ammario commented
Ok.. So revert the revert?