From mboxrd@z Thu Jan 1 00:00:00 1970 From: dave@horsfall.org (Dave Horsfall) Date: Sat, 23 Dec 2017 11:19:30 +1100 (EST) Subject: [TUHS] SYSTEM V R1 HELP In-Reply-To: <1513933789.1081623.1213240800.50A34AF0@webmail.messagingengine.com> References: <8157BC46-2833-48D5-B224-B9E488A4B8F0@jctaylor.com> <95F61863-C025-469A-9577-D2F8E75A813A@jctaylor.com> <77B078BE-E3CD-4AFF-93B4-20AF4C8664FD@jctaylor.com> <1513911314.999748.1213050656.486E2E9E@webmail.messagingengine.com> <8C7D7E48-C9E5-4F75-A76F-3E9D7F651A6F@jctaylor.com> <1513933789.1081623.1213240800.50A34AF0@webmail.messagingengine.com> Message-ID: On Fri, 22 Dec 2017, Random832 wrote: > I've got it. The problem is with putc (actually _flsbuf), and it is > precisely *because* stderr is unbuffered. > > #define putc(x, p) (--(p)->_cnt >= 0 ? \ > ((int) (*(p)->_ptr++ = (unsigned char) (x))) : \ > _flsbuf((unsigned char) (x), (p))) [...] That, sir, is one brilliant piece of analysis; well done! Of course, in hindsight it's bleedin' obvious :-) -- Dave Horsfall DTM (VK2KFU) "Those who don't understand security will suffer."