This is the mail archive of the glibc-bugs@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]

[Bug libc/13660] poll wrong revents returned


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.


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