VirtualBox

Changeset 76908 in vbox


Ignore:
Timestamp:
Jan 21, 2019 8:28:43 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
128277
Message:

Runtime/posix/serialport-posix: Fix access to pseudo terminals, they fail TIOCMBIC and TIOCMGET with EINVAL

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/user_ChangeLogImpl.xml

    r76885 r76908  
    5353      </listitem>
    5454
     55      <listitem>
     56        <para>Serial: fixed connecting to pseudo terminals on POSIX hosts
     57          (6.0.0 regression; bug #18319)</para>
     58      </listitem>
     59
    5560    </itemizedlist>
    5661  </sect1>
  • trunk/src/VBox/Runtime/r3/posix/serialport-posix.cpp

    r76553 r76908  
    266266                int fTiocmClear = TIOCM_LOOP;
    267267                rcPsx = ioctl(pThis->iFd, TIOCMBIC, &fTiocmClear);
    268                 if (rcPsx == -1)
     268                if (rcPsx == -1 && errno != EINVAL) /* Pseudo terminals don't support loopback mode so ignore an error here. */
    269269                    rc = RTErrConvertFromErrno(errno);
    270270            }
     
    623623        }
    624624    }
    625     else if (errno == ENOTTY)
     625    else if (errno == ENOTTY || errno == EINVAL)
    626626        rc = VERR_NOT_SUPPORTED;
    627627    else
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