VirtualBox

Changeset 58322 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Oct 19, 2015 7:49:26 PM (9 years ago)
Author:
vboxsync
Message:

localipc-posix.cpp: Darwin does the POLLIN+POLLHUB thing too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/localipc-posix.cpp

    r58320 r58322  
    695695    RT_ZERO(PollFd);
    696696    PollFd.fd      = fdNative;
    697     PollFd.events  = POLLHUP;
     697    PollFd.events  = POLLHUP | POLLERR;
    698698    if (poll(&PollFd, 1, 0) <= 0)
    699699        return false;
     
    980980                    if (cFds >= 1)
    981981                    {
    982                         /* Linux 4.2.2 sets both POLLIN and POLLHUP when the pipe is
     982                        /* Linux & Darwin sets both POLLIN and POLLHUP when the pipe is
    983983                           broken and but no more data to read.  Google hints at NetBSD
    984984                           returning more sane values (POLLIN till no more data, then
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette