System V IPC code from Danny Boulet, chewed on a bit by the NetBSD group
[unix-history] / sys / kern / kern_exit.c
index 0534196..34a8eb2 100644 (file)
@@ -31,7 +31,7 @@
  * SUCH DAMAGE.
  *
  *     from: @(#)kern_exit.c   7.35 (Berkeley) 6/27/91
  * SUCH DAMAGE.
  *
  *     from: @(#)kern_exit.c   7.35 (Berkeley) 6/27/91
- *     $Id: kern_exit.c,v 1.10 1993/11/25 01:32:57 wollman Exp $
+ *     $Id: kern_exit.c,v 1.11 1993/12/19 00:51:24 wollman Exp $
  */
 
 #include "param.h"
  */
 
 #include "param.h"
@@ -118,6 +118,10 @@ kexit(p, rv)
         */
        fdfree(p);
 
         */
        fdfree(p);
 
+#ifdef SYSVSEM
+       semexit(p);
+#endif
+
        /* The next two chunks should probably be moved to vmspace_exit. */
 #ifdef SYSVSHM
        if (p->p_vmspace->vm_shm)
        /* The next two chunks should probably be moved to vmspace_exit. */
 #ifdef SYSVSHM
        if (p->p_vmspace->vm_shm)