Changeset 4661 in vbox
- Timestamp:
- Sep 10, 2007 12:25:56 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 24308
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Serial/DrvHostSerial.cpp
r4372 r4661 45 45 # include <string.h> 46 46 # include <unistd.h> 47 # include <sys/poll.h> 47 48 #elif defined(RT_OS_WINDOWS) 48 49 # include <windows.h> … … 441 442 { 442 443 /* Get a block of data from the host serial device. */ 443 size_t cbRead; 444 size_t cbRead; 445 446 #ifdef RT_OS_LINUX 447 struct pollfd pfd; 448 449 pfd.fd = pData->DeviceFile; 450 pfd.events = POLLIN; 451 452 rc = poll(&pfd, 1, -1); 453 if (rc < 0) 454 break; 455 #endif 456 444 457 rc = RTFileRead(pData->DeviceFile, abBuffer, sizeof(abBuffer), &cbRead); 445 458 if (VBOX_FAILURE(rc)) … … 448 461 break; 449 462 } 463 Log(("Host Serial Driver: Read %d bytes.\n", cbRead)); 450 464 cbRemaining = cbRead; 451 465 pbBuffer = abBuffer; … … 560 574 comTimeout.ReadIntervalTimeout = MAXDWORD; 561 575 comTimeout.ReadTotalTimeoutMultiplier = 0; 562 comTimeout.ReadTotalTimeoutConstant = 0;576 comTimeout.ReadTotalTimeoutConstant = 10; 563 577 comTimeout.WriteTotalTimeoutMultiplier = 0; 564 578 comTimeout.WriteTotalTimeoutConstant = 0;
Note:
See TracChangeset
for help on using the changeset viewer.