VirtualBox

Changeset 18858 in vbox for trunk/src/VBox/Devices/Network


Ignore:
Timestamp:
Apr 10, 2009 7:20:13 AM (16 years ago)
Author:
vboxsync
Message:

NAT: replacing release assert with suppressed message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Network/DrvNAT.cpp

    r18726 r18858  
    351351# else /* RT_OS_WINDOWS */
    352352    struct pollfd *polls = NULL;
     353    unsigned int cPollNegRet;
    353354# endif /* !RT_OS_WINDOWS */
    354355
     
    387388
    388389        int cChangedFDs = poll(polls, nFDs + 1, ms ? ms : -1);
    389 #ifndef RT_OS_LINUX /* 2.6.23 + gdb -> hitting all the time. probably a bug in poll/ptrace/whatever. */
    390         AssertRelease(cChangedFDs >= 0);
    391 #endif
     390        /* 2.6.23 + gdb -> hitting all the time. probably a bug in poll/ptrace/whatever. */
     391        if (cChangedFDs < 0)
     392        {
     393            if (cPollNegRet++ > 128)
     394            {
     395                cPollNegRet = 0;
     396                LogRel(("Poll returns (%s) suppressed %d\n", strerror(errno), cPollNegRet));
     397            }
     398        }
     399
    392400        if (cChangedFDs >= 0)
    393401        {
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