VirtualBox

Changeset 69397 in vbox for trunk


Ignore:
Timestamp:
Oct 26, 2017 6:46:49 PM (7 years ago)
Author:
vboxsync
Message:

Serial: Don't switch to polling mode if the TIOCMIWAIT ioctl was interrupted which is a valid case (when tcsetattr gets called) and broke certain serial devices

File:
1 edited

Legend:

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

    r64276 r69397  
    952952        {
    953953            rcPsx = ioctl(RTFileToNative(pThis->hDeviceFile), TIOCMIWAIT, uStatusLinesToCheck);
    954             if (rcPsx < 0)
    955             {
    956                 LogRel(("Serial#%u: Failed to wait for status line change, switch to polling\n", pDrvIns->iInstance));
     954            if (rcPsx < 0 && errno != EINTR)
     955            {
     956                LogRel(("Serial#%u: Failed to wait for status line change with rcPsx=%d errno=%d, switch to polling\n",
     957                        pDrvIns->iInstance, rcPsx, errno));
    957958                fPoll = true;
    958959                pThis->fStatusLines = statusLines;
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