summaryrefslogtreecommitdiffstats
path: root/sys/kern/sysv_ipc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/sysv_ipc.c')
-rw-r--r--sys/kern/sysv_ipc.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/sysv_ipc.c b/sys/kern/sysv_ipc.c
index fc5fd8f..55d39de 100644
--- a/sys/kern/sysv_ipc.c
+++ b/sys/kern/sysv_ipc.c
@@ -42,7 +42,7 @@
#include <sys/ucred.h>
void (*shmfork_hook)(struct proc *, struct proc *) = NULL;
-void (*shmexit_hook)(struct proc *) = NULL;
+void (*shmexit_hook)(struct vmspace *) = NULL;
/* called from kern_fork.c */
void
@@ -57,12 +57,11 @@ shmfork(p1, p2)
/* called from kern_exit.c */
void
-shmexit(p)
- struct proc *p;
+shmexit(struct vmspace *vm)
{
if (shmexit_hook != NULL)
- shmexit_hook(p);
+ shmexit_hook(vm);
return;
}
OpenPOWER on IntegriCloud