Print this page
Code review comments from jeffpc

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/fork.c
          +++ new/usr/src/uts/common/os/fork.c
↓ open down ↓ 1083 lines elided ↑ open up ↑
1084 1084          cp->p_datprot = pp->p_datprot;
1085 1085          cp->p_usrstack = pp->p_usrstack;
1086 1086          cp->p_model = pp->p_model;
1087 1087          cp->p_ppid = pp->p_pid;
1088 1088          cp->p_ancpid = pp->p_pid;
1089 1089          cp->p_portcnt = pp->p_portcnt;
1090 1090          /*
1091 1091           * Security flags are preserved on fork, the inherited copy come into
1092 1092           * effect on exec
1093 1093           */
1094      -        bcopy(&pp->p_secflags, &cp->p_secflags, sizeof (psecflags_t));
     1094 +        cp->p_secflags = pp->p_secflags;
1095 1095  
1096 1096          /*
1097 1097           * Initialize watchpoint structures
1098 1098           */
1099 1099          avl_create(&cp->p_warea, wa_compare, sizeof (struct watched_area),
1100 1100              offsetof(struct watched_area, wa_link));
1101 1101  
1102 1102          /*
1103 1103           * Initialize immediate resource control values.
1104 1104           */
↓ open down ↓ 363 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX