VirtualBox

Changeset 78971 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Jun 4, 2019 4:34:14 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131097
Message:

RTPoll/darwin: Add POLLHUP to the events when RTPOLL_EVT_ERROR is requested as in case it is alone as it seems like the kernel might not wait on the file descriptor otherwise. bugref:9464

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/poll.cpp

    r78832 r78971  
    858858                pThis->paPollFds[i].events |= POLLOUT;
    859859            if (fEvents & RTPOLL_EVT_ERROR)
     860# ifdef RT_OS_DARWIN
     861                pThis->paPollFds[i].events |= POLLERR | POLLHUP;
     862# else
    860863                pThis->paPollFds[i].events |= POLLERR;
     864# endif
    861865#endif
    862866            pThis->paHandles[i].enmType     = pHandle->enmType;
Note: See TracChangeset for help on using the changeset viewer.

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