From e2d70dbae178de04225d3855af0a80de52569354 Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Wed, 16 Aug 2006 08:25:40 +0000 Subject: [PATCH] Swap the names "sem_exithook" and "sem_exechook" in the previous commit to match up with reality and the prototype definitions. Register the sem_exechook as the "process_exec" event handler, not sem_exithook. Submitted by: rdivacky Sponsored by: SoC 2006 --- sys/kern/uipc_sem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/uipc_sem.c b/sys/kern/uipc_sem.c index a1b63f68eacf..9e8b27916738 100644 --- a/sys/kern/uipc_sem.c +++ b/sys/kern/uipc_sem.c @@ -920,13 +920,13 @@ sem_forkhook(void *arg, struct proc *p1, struct proc *p2, int flags) } static void -sem_exithook(void *arg, struct proc *p, struct image_params *imgp __unused) +sem_exechook(void *arg, struct proc *p, struct image_params *imgp __unused) { - sem_exechook(arg, p); + sem_exithook(arg, p); } static void -sem_exechook(void *arg, struct proc *p) +sem_exithook(void *arg, struct proc *p) { struct ksem *ks, *ksnext; @@ -958,7 +958,7 @@ sem_modload(struct module *module, int cmd, void *arg) p31b_setcfg(CTL_P1003_1B_SEM_VALUE_MAX, SEM_VALUE_MAX); sem_exit_tag = EVENTHANDLER_REGISTER(process_exit, sem_exithook, NULL, EVENTHANDLER_PRI_ANY); - sem_exec_tag = EVENTHANDLER_REGISTER(process_exec, sem_exithook, + sem_exec_tag = EVENTHANDLER_REGISTER(process_exec, sem_exechook, NULL, EVENTHANDLER_PRI_ANY); sem_fork_tag = EVENTHANDLER_REGISTER(process_fork, sem_forkhook, NULL, EVENTHANDLER_PRI_ANY); break;