VirtualBox

Changeset 40438 in vbox for trunk/src/VBox/Devices


Ignore:
Timestamp:
Mar 13, 2012 9:50:47 AM (13 years ago)
Author:
vboxsync
Message:

Serial: don't leave the loop on EINTR. We have a similar handling in DrvTAP.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp

    r40282 r40438  
    695695            {
    696696                int err = errno;
     697                if (err == EINTR)
     698                {
     699                    /*
     700                     * EINTR errors should be harmless, even if they are not supposed to occur in our setup.
     701                     */
     702                    Log(("rc=%d revents=%#x,%#x errno=%p %s\n", rc, aFDs[0].revents, aFDs[1].revents, err, strerror(err)));
     703                    RTThreadYield();
     704                    continue;
     705                }
     706
    697707                rcThread = RTErrConvertFromErrno(err);
    698708                LogRel(("HostSerial#%d: poll failed with errno=%d / %Rrc, terminating the worker thread.\n", pDrvIns->iInstance, err, rcThread));
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