http://bugs.winehq.org/show_bug.cgi?id=29499
--- Comment #32 from Dmitry Timoshkov dmitry@baikal.ru 2012-03-10 06:41:01 CST --- (In reply to comment #31)
Just so you know, these two lines are mathematically equivalent: (pfd.revents & POLLERR) || (pfd.revents & POLLHUP) pfd.revents & (POLLERR|POLLHUP)
I don't think so =) The second one implies that both bits need to be set. The first one can detect the bits separately. Did you misread the || as &&?
Alex is right, 2 lines above do the same thing.