News for hackers. Stuff that matters.
Re:We can do better than line-buffered output by edpenz on Thursday November 05, 2026 @04:57PM (#50385046)
One more thing to consider is atomicity of write interleaving to the same pipe. Say you fork two unzips in the terminal like `unzip a & unzip b`. With naive line buffering the outputs mix cleanly, but if aggregating multiple lines per write the chunk size needs to stay below PIPE_BUF for this to stay true.
Re:We can do better than line-buffered output by ahartmetz on Friday November 06, 2026 @07:58AM (#50391797)
I strongly suspect that that is the reason for the current behavior. The people behind glibc aren't stupid.