Changeset 12348 in vbox
- Timestamp:
- Sep 10, 2008 12:19:15 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r12347 r12348 1 /* *$Id$ */1 /* $Id$ */ 2 2 /** @file 3 3 * VBox stream I/O devices: Host serial driver … … 558 558 559 559 #if defined(RT_OS_DARWIN) /* poll is broken on x86 darwin, returns POLLNVAL. */ 560 fd set RdSet;561 FD SET_ZERO(&RdSet);562 FD SET_SET(pThis->DeviceFile, &RdSet);563 FD SET_SET(pThis->WakeupPipeR, &RdSet);564 fd set XcptSet;565 FD SET_ZERO(&XcptSet);566 FD SET_SET(pThis->DeviceFile, &XcptSet);567 FD SET_SET(pThis->WakeupPipeR, &XcptSet);560 fd_set RdSet; 561 FD_ZERO(&RdSet); 562 FD_SET(pThis->DeviceFile, &RdSet); 563 FD_SET(pThis->WakeupPipeR, &RdSet); 564 fd_set XcptSet; 565 FD_ZERO(&XcptSet); 566 FD_SET(pThis->DeviceFile, &XcptSet); 567 FD_SET(pThis->WakeupPipeR, &XcptSet); 568 568 rc = select(RT_MAX(pThis->WakeupPipeR, pThis->DeviceFile) + 1, &RdSet, NULL, &XcptSet, NULL); 569 569 if (rc == -1) … … 582 582 583 583 /* drain the wakeup pipe */ 584 if ( FDSET_ISSET(pThis->WakeupPipeR, &RdSet) 585 || FDSET_ISSET(pThis->WakeupPipeR, &XcptSet)) 584 size_t cbRead; 585 if ( FD_ISSET(pThis->WakeupPipeR, &RdSet) 586 || FD_ISSET(pThis->WakeupPipeR, &XcptSet)) 586 587 { 587 588 rc = RTFileRead(pThis->WakeupPipeR, abBuffer, 1, &cbRead);
Note:
See TracChangeset
for help on using the changeset viewer.