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
This commit is contained in:
Colin Percival 2006-08-16 08:25:40 +00:00
parent 25dbf7fe4e
commit e2d70dbae1

View File

@ -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;