Changes between Initial Version and Version 1 of Ticket #17867, comment 4
- Timestamp:
- Sep 9, 2022, 10:15:39 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #17867, comment 4
initial v1 3 3 At least on Linux, tcdrain() waits until all the bytes in the output buffer are actually written. 4 4 5 That 'sdoesn't seems to be the case on Haiku in my tests, and instead of relying on tcdrain() blocking, I have to call `sleep()` with a number of milliseconds proportional to the baudrate I'm using, to make sure the data is properly sent.5 That doesn't seems to be the case on Haiku in my tests, and instead of relying on tcdrain() blocking, I have to call `sleep()` with a number of milliseconds proportional to the baudrate I'm using, to make sure the data is properly sent. 6 6 7 7 Double checking due to your comment, it does indeed like Haiku's tty module takes that TCSBRK and TTYSETBREAK to usb_serial (a no-op there) and to pc_serial drivers (where it seems to set/unset a register, but not block till the output buffer is emptied). … … 35 35 Writing this just for reference, or to let others spots where I'm getting confused. 36 36 37 In any case, I guess I should test some more (even under BeOS), write some test cases I can share, and hopefully understand enough as to, at least, propose some changes.37 In any case, I guess I should test some more (even under BeOS), write some test programs I can share, and hopefully understand enough as to, at least, propose some changes. 38 38 39 39 Pointers, suggestions and corrections, always welcomed! Thanks!