Ticket #2371 defect closed fixed
twisted.conch.stdio.runWithProtocol writes to non-blocking file descriptor incorrectly
| Reported by: | exarkun | Owned by: | |
|---|---|---|---|
| Priority: | highest | Milestone: | |
| Component: | conch | Keywords: | |
| Cc: | therve | Branch: | |
| Author: | Launchpad Bug: |
Description
At this line:
os.write(0, "\r\x1bc\r")
0 is in non-blocking mode. This means the write may fail or be incomplete. The return value must be checked or the file descriptor should be set to be blocking.
This may be related to #2123. Or it may not be. Whether the file descriptor is in blocking mode or non-blocking mode, the write succeeds completely for that test; however, when it is in blocking mode, I have not seen the test fail, whereas when it is in non-blocking mode it fails at least 1 time in 10 when run on a heavily loaded OS X machine.
Change History
Note: See
TracTickets for help on using
tickets.
