Displaying 1 result from an estimated 1 matches for "chan_wont_write2".
Did you mean:
chan_wont_write
2002 Feb 05
0
New forkoff() and chan_wont_read/write() API
...HAN_OUTPUT_CLOSED;
+ break;
+ default:
+ debug("channel %d: chan_wont_write for ostate %d",
+ c->self, c->ostate);
+ break;
+ }
+}
+static void
chan_obuf_empty1(Channel *c)
{
debug("channel %d: obuf empty", c->self);
@@ -369,6 +414,27 @@
}
}
static void
+chan_wont_write2(Channel *c)
+{
+ debug("channel %d: wont write", c->self);
+ switch (c->ostate) {
+ case CHAN_OUTPUT_OPEN:
+ debug("channel %d: output open -> closed", c->self);
+ chan_shutdown_write(c); /* ?? */
+ c->ostate = CHAN_OUTPUT_CLOSED;
+ break;
+ case CHAN_OUTPUT_W...