9 vtconn(int infd, int outfd)
14 z = vtmallocz(sizeof(VtConn));
15 z->tagrend.l = &z->lk;
16 z->rpcfork.l = &z->lk;
19 z->part = packetalloc();
20 nci = getnetconninfo(nil, infd);
22 snprint(z->addr, sizeof z->addr, "/dev/fd/%d", infd);
24 strecpy(z->addr, z->addr+sizeof z->addr, nci->raddr);
36 * Wait for send and recv procs to notice
37 * the hangup and clear out the queues.
39 while(z->readq || z->writeq){
43 _vtqhangup(z->writeq);