Date: Tue, 7 Mar 2023 20:42:37 +0800 (CST) From: somethingfnothing <somethingfnothing@....com> To: "musl@...ts.openwall.com " <musl@...ts.openwall.com> Subject: fputs stdout lost characters on nonblock tty hi I use fputs to write string to stdout, sometimes it will lost some characters, the error is EAGAIN, my tty is nonblock. fputs did not handle this error, it reset the "wpos" "wbase" "wend" and return -1 when recive error, thus the last characters was lost, and I cannot know how much characters was lost I think fputs should retry write when recive EAGAIN since app cannot know how much characters was lost Content of type "text/html" skipped
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.