pty bugs & features

Doug Gwyn gwyn at smoke.BRL.MIL
Mon Aug 27 15:29:06 AEST 1990


In article <6038 at muffin.cme.nist.gov> libes at cme.nist.gov (Don Libes) writes:
>Why do pty's return EIO instead of 0 upon EOF?

If they do this, it is clearly wrong and would most likely be due to
UNIX development now being done, or at least directed, by people who
don't understand UNIX.  read() should not return -1 upon encountering
normal EOF on ANY object.  If the end of the stream is due to a
communication link failure, for example, then an error indication
would in fact be preferable to an undifferentiated EOF indication.

>Why do stream's dump their buffers when the writer closes?

They're not supposed to; do they really do that?  Is USO really
screwing up UNIX to such an extent??

>What is it you are expected to do in 15 seconds?

There is no justification for penalizing an application for not
consuming all the data buffered in the kernel within 15 seconds.

I lost track of the origin of this thread; if this timeout is supposed
to be related to the TCP protocol, my guess would be that somebody has
yet again tripped up on the "FIN_WAIT_2" issue.

>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.

Not really, usually it indicates that the responder has not memorized
the FAQ list but feels that the question should be there and that either
the asker has failed to read the FAQ list or else the question wasn't
there.  (Or, as in in your case,

>... at the moment ... the FAQ has slipped off the face of the earth.

)



More information about the Comp.unix.wizards mailing list