cannot zero p_hash (without causing grief)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 23 Aug 1994 09:15:39 +0000 (01:15 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Tue, 23 Aug 1994 09:15:39 +0000 (01:15 -0800)
SCCS-vsn: sys/sys/proc.h 8.12

usr/src/sys/sys/proc.h

index bf68925..a7c0631 100644 (file)
@@ -9,7 +9,7 @@
  *
  * %sccs.include.redist.c%
  *
  *
  * %sccs.include.redist.c%
  *
- *     @(#)proc.h      8.11 (Berkeley) %G%
+ *     @(#)proc.h      8.12 (Berkeley) %G%
  */
 
 #ifndef _SYS_PROC_H_
  */
 
 #ifndef _SYS_PROC_H_
@@ -105,12 +105,17 @@ struct    proc {
        int     p_siglist;              /* Signals arrived but not delivered. */
 
        struct  vnode *p_textvp;        /* Vnode of executable. */
        int     p_siglist;              /* Signals arrived but not delivered. */
 
        struct  vnode *p_textvp;        /* Vnode of executable. */
-       LIST_ENTRY(proc) p_hash;        /* Hash chain. */
 
        long    p_spare[3];             /* pad to 256, avoid shifting eproc. */
 
 /* End area that is zeroed on creation. */
 
        long    p_spare[3];             /* pad to 256, avoid shifting eproc. */
 
 /* End area that is zeroed on creation. */
-#define        p_endzero       p_startcopy
+#define        p_endzero       p_hash.le_next
+
+       /*
+        * Not copied, not zero'ed.
+        * Belongs after p_pid, but here to avoid shifting proc elements.
+        */
+       LIST_ENTRY(proc) p_hash;        /* Hash chain. */
 
 /* The following fields are all copied upon creation in fork. */
 #define        p_startcopy     p_sigmask
 
 /* The following fields are all copied upon creation in fork. */
 #define        p_startcopy     p_sigmask