Print this page
XXXX adding PID information to netstat output

*** 1782,1791 **** --- 1782,1796 ---- if ((fd = ufalloc(0)) == -1) return (-1); setf(fd, fp); dp->d_data.d_desc.d_descriptor = fd; + /* add curproc to the pid list associated with that file */ + if (fp->f_vnode != NULL) + (void) VOP_IOCTL(fp->f_vnode, F_FORKED, (intptr_t)curproc, FKIOCTL, + kcred, NULL, NULL); + /* Fill in the attributes */ if (VOP_REALVP(fp->f_vnode, &vp, NULL)) vp = fp->f_vnode; if (vp && vp->v_type == VDOOR) { if (VTOD(vp)->door_target == curproc)