Overview
| Artifact ID: | 9bf9a153ce3064231e79b733802972e0b12c5bdc |
|---|---|
| Ticket: | 3522560fffffffffffffffffffffffffffffffff
iocmd.tf-24.15,16 are brittle (refchan+transfer) |
| User & Date: | ferrieux on 2012-05-01 04:16:33 |
Changes
- icomment:
Created branch bug-3522560 with the following comment: Explore enforcing the (implied) law that EAGAIN is forbidden for a blocking channel. Violation discovered is iocmd.tf-24.1[56]56 after TIP#398. Turns deadlock of these tests into frank failures. Note that the patch also includes adding timeouts to various vwaits in the tests. Indeed, at first glance the vwaits in the -cleanup part sound fishy, but they are needed to avoid inter-test event leaks, as has been seen before (see fossil history of these tests). So just time out after 1 sec, for they should be instantaneous. The C part of the patch raises an error when a blocking channel returns EAGAIN or EWOULDBLOCK. This is an experimental feature, due to an ominous comment in the code: * This used to check for CHANNEL_NONBLOCKING, and panic if * the channel was blocking. However, it appears that setting * stdin to -blocking 0 has some effect on the stdout when * it's a tty channel (dup'ed underneath) note we no longer panic, but raise a proper error, since it could be a simple script error in a refchan. Still, the threat of a possible stdout becoming nonblocking at the ioctl level, while still remaining blocking as seen by Tcl (due to fd sharing and [fconfigure stdin -blocking 0]), must be investigated. Please test !!!
- login: "ferrieux"
- mimetype: "text/plain"
- username: "ferrieux"