Changeset 37597 in vbox for trunk/src/VBox/Devices/Serial
- Timestamp:
- Jun 22, 2011 8:54:05 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r37596 r37597 635 635 FD_SET(RTPipeToNative(pThis->hWakeupPipeR), &XcptSet); 636 636 # if 1 /* it seems like this select is blocking the write... */ 637 rc = select(RT_MAX(RT FileToPipe(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR)) + 1,637 rc = select(RT_MAX(RTPipeToNative(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR)) + 1, 638 638 &RdSet, NULL, &XcptSet, NULL); 639 639 # else 640 640 struct timeval tv = { 0, 1000 }; 641 rc = select(RT FileToPipe(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR) + 1,641 rc = select(RTPipeToNative(pThis->hWakeupPipeR), RTFileToNative(pThis->hDeviceFileR) + 1, 642 642 &RdSet, NULL, &XcptSet, &tv); 643 643 # endif … … 659 659 size_t cbRead; 660 660 if ( FD_ISSET(RTPipeToNative(pThis->hWakeupPipeR), &RdSet) 661 || FD_ISSET( pThis->hWakeupPipeR, &XcptSet))661 || FD_ISSET(RTPipeToNative(pThis->hWakeupPipeR), &XcptSet)) 662 662 { 663 663 rc = RTPipeRead(pThis->hWakeupPipeR, abBuffer, 1, &cbRead); … … 1276 1276 /* Linux & darwin needs a separate thread which monitors the status lines. */ 1277 1277 # ifndef RT_OS_LINUX 1278 ioctl( pThis->DeviceFile, TIOCMGET, &pThis->fStatusLines);1278 ioctl(RTFileToNative(pThis->hDeviceFile), TIOCMGET, &pThis->fStatusLines); 1279 1279 # endif 1280 1280 rc = PDMDrvHlpThreadCreate(pDrvIns, &pThis->pMonitorThread, pThis, drvHostSerialMonitorThread, drvHostSerialWakeupMonitorThread, 0, RTTHREADTYPE_IO, "SerMon");
Note:
See TracChangeset
for help on using the changeset viewer.