This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/13660] poll wrong revents returned
- From: "bugdal at aerifal dot cx" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Sat, 04 Feb 2012 00:08:06 +0000
- Subject: [Bug libc/13660] poll wrong revents returned
- Auto-submitted: auto-generated
- References: <bug-13660-131@http.sourceware.org/bugzilla/>
http://sourceware.org/bugzilla/show_bug.cgi?id=13660
Rich Felker <bugdal at aerifal dot cx> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugdal at aerifal dot cx
--- Comment #2 from Rich Felker <bugdal at aerifal dot cx> 2012-02-04 00:08:06 UTC ---
This is not a bug. When a socket is at EOF, read returns without blocking (a
zero-length read). This is basically the definition (from an application
standpoint) of EOF. Per POSIX, POLLIN is returned when "Data other than
high-priority data may be read without blocking." A zero-length EOF read is in
this case "data".
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.