Changes between Version 2 and Version 3 of Ticket #8789, comment 21


Ignore:
Timestamp:
May 15, 2023, 2:08:11 AM (19 months ago)
Author:
bipolar

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #8789, comment 21

    v2 v3  
    11FWIW, the test case from comment:11 also blocks when opening `/dev/port/pc_serial1` (with a loop-back cable connected to it).
    22
    3 Modifying Haiku's `BSerialPort::_DeviceControl()` so it (un)sets `O_NONBLOCK` depending on the state of BSerialPort's `fBlocking`, makes that test run as expected (for both SetBlocking() true/false values).
     3Modifying Haiku's `BSerialPort::_DeviceControl()` so it (un)sets `O_NONBLOCK` depending on the state of BSerialPort's `fBlocking` (using `fcntl` as in comment:13), makes that test run as expected (for both SetBlocking() true/false values).
    44
    55Guess I found one of the many reasons why my old serial_mouse driver misbehaves in Haiku, but works otherwise OK on BeOS. (edit: or at least one of the reasons why my tests trying to find the differences only managed to confuse me further :-D).