Have #I show Qlisten FDs in chaninfo
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 3 Sep 2015 17:58:45 +0000 (13:58 -0400)
committerBarret Rhoden <brho@cs.berkeley.edu>
Mon, 28 Sep 2015 19:14:00 +0000 (15:14 -0400)
Previously, no one could have an FD for a Qlisten, so this was unlikely
to come up, though it's possible to have a *chan* for Qlisten within the
kernel.

kern/src/net/devip.c

index 8d71a29..b6dbcf0 100644 (file)
@@ -611,6 +611,12 @@ static char *ipchaninfo(struct chan *ch, char *ret, size_t ret_l)
                case Qiproute:
                        ret = "Qiproute";
                        break;
+               case Qlisten:
+                       proto = f->p[PROTO(ch->qid)];
+                       conv = proto->conv[CONV(ch->qid)];
+                       snprintf(ret, ret_l, "Qlisten, proto %s, conv idx %d", proto->name,
+                                        conv->x);
+                       break;
                case Qlog:
                        ret = "Qlog";
                        break;