From mboxrd@z Thu Jan 1 00:00:00 1970 From: scj@yaccman.com (scj@yaccman.com) Date: Tue, 15 Jul 2014 11:55:20 -0700 Subject: [TUHS] the sin of buffering [offshoot of excise process from a pipeline] In-Reply-To: <201407150231.s6F2VRK0022875@coolidge.cs.dartmouth.edu> References: <201407150231.s6F2VRK0022875@coolidge.cs.dartmouth.edu> Message-ID: <5f3101eb46bd1515ea3182d9c2ef89c5.squirrel@webmail.yaccman.com> Bah! This is a bug in Unix, IMHO. We would consider it a bug if a buffered output file refused to dump it's output buffer upon exit. It seems to me to be just as much a bug if a buffered input file refuses to push back its unused input on exit. Unix should have provided a mechanism to permit this... Steve >> Err, why is buffering data in the process a sin? (Or was this just a > humourous aside?) > > Process A spawns process B, which reads stdin with buffering. B gets > all it deserves from stdin and exits. What's left in the buffer, > intehded for A, is lost. Sinful. > _______________________________________________ > TUHS mailing list > TUHS at minnie.tuhs.org > https://minnie.tuhs.org/mailman/listinfo/tuhs >