Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!uunet!cme!libes From: libes@cme.nist.gov (Don Libes) Newsgroups: comp.unix.wizards Subject: Re: pty bugs & features Message-ID: <6038@muffin.cme.nist.gov> Date: 24 Aug 90 16:40:19 GMT References: <5992@muffin.cme.nist.gov> <3948@auspex.auspex.com> Reply-To: libes@cme.nist.gov (Don Libes) Organization: National Institute of Standards and Technology Lines: 35 In article <3948@auspex.auspex.com> guy@auspex.auspex.com (Guy Harris) writes: >>The Dec behavior is what I would've expected. The Sun engineer could >>not explain where the number 15 came from, > >It comes from the AT&T S5R3.x source code. Where it got the number, I >don't know. Uhhh, this wasn't quite the answer I was looking for. Let me rephrase the question(s): Why do pty's return EIO instead of 0 upon EOF? Is SunOS, Ultrix, or neither doing the "right" thing? If Ultrix is BSD-based and SunOS is SV-based, obviously this EIO behavior is common practice, yet I don't find any documentation on it, nor could a company engineer explain it. What's the rationale? Why do stream's dump their buffers when the writer closes? I would think this could be a problem with other drivers besides ptys. Or am I confused and is this just an error in the way the pty driver uses streams? Is it possible to change this behavior using a flow control option without taking a severe hit in efficiency? (The manual alluded to this but didn't give enough to go on.) What is it you are expected to do in 15 seconds? It sure seems unusually large for internal system cleanup purposes. Yet it is worthless for user purposes if you can't make it infinite. Why can't you change this number? And finally, why does everyone answer easy questions with "[long essay deleted] and this should probably be in the FAQ if it isn't already"? That indicates to me that neither the asker nor the answerer has read the FAQ. (This is a rhetorical question at the moment since the FAQ has slipped off the face of the earth. Hey, repost that sucker!) Don Libes libes@cme.nist.gov ...!uunet!cme-durer!libes