This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: BZ #1190: stream behaviour on encountering an EOF


On 09/13/2012 09:37 PM, Rich Felker wrote:

A socket does not return EOF except when the other end was closed or
shutdown. It blocks or gives EAGAIN in nonblocking mode if no data is
available.

The application could use dup2 to replace the file descriptor, but that's slightly broken anyway.


--
Florian Weimer / Red Hat Product Security Team


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]