Sorry for being slow. Can you describe the situation in which you expect a write to stderr to be a short write? (Without error.) In that situation, what guarantee is there that the loop you've written will terminate? We're not talking about safeguarding a users' data here - this is a short message to indicate that a tool is terminating due to a signal. I'm concerned that the solution is worse than the problem.