Changeset 6268 in vbox for trunk/src/VBox
- Timestamp:
- Jan 8, 2008 4:32:42 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27112
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r6262 r6268 784 784 rc = ioctl(pData->DeviceFile, TIOCMBIS, TIOCM_LOOP); 785 785 if (rc < 0) 786 AssertMsgFailed(("%s: Setting device into loopback mode failed. Cannot wake up the thread!!\n", __FUNCTION__));786 goto ioctl_error; 787 787 788 788 rc = ioctl(pData->DeviceFile, TIOCMBIS, TIOCM_RTS); 789 789 if (rc < 0) 790 AssertMsgFailed(("%s: Setting bit failed. Cannot wake up thread!!\n", __FUNCTION__));790 goto ioctl_error; 791 791 792 792 /* … … 795 795 rc = ioctl(pData->DeviceFile, TIOCMBIC, TIOCM_LOOP); 796 796 if (rc < 0) 797 AssertMsgFailed(("%s: Setting device into normal mode failed. Device is not in a working state!!\n", __FUNCTION__)); 798 799 return rc; 797 goto ioctl_error; 798 799 ioctl_error: 800 PDMDrvHlpVMSetRuntimeError(pDrvIns, false, "DrvHostSerialFail", 801 N_("Ioctl failed for serial host device '%s' (error %d)"), 802 pData->pszDevicePath, errno); 803 804 return VINF_SUCCESS; 800 805 } 801 806 #endif /* RT_OS_LINUX */
Note:
See TracChangeset
for help on using the changeset viewer.