Print this page
XXXX adding PID information to netstat output

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/fork.c
          +++ new/usr/src/uts/common/os/fork.c
↓ open down ↓ 1181 lines elided ↑ open up ↑
1182 1182          if (PTOU(pp)->u_rdir)
1183 1183                  VN_HOLD(PTOU(pp)->u_rdir);
1184 1184          if (PTOU(pp)->u_cwd)
1185 1185                  refstr_hold(PTOU(pp)->u_cwd);
1186 1186  
1187 1187          /*
1188 1188           * copy the parent's uarea.
1189 1189           */
1190 1190          uarea = PTOU(cp);
1191 1191          bcopy(PTOU(pp), uarea, sizeof (*uarea));
1192      -        flist_fork(P_FINFO(pp), P_FINFO(cp));
     1192 +        flist_fork(pp, cp);
1193 1193  
1194 1194          gethrestime(&uarea->u_start);
1195 1195          uarea->u_ticks = ddi_get_lbolt();
1196 1196          uarea->u_mem = rm_asrss(pp->p_as);
1197 1197          uarea->u_acflag = AFORK;
1198 1198  
1199 1199          /*
1200 1200           * If inherit-on-fork, copy /proc tracing flags to child.
1201 1201           */
1202 1202          if ((pp->p_proc_flag & P_PR_FORK) != 0) {
↓ open down ↓ 260 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX