From fb96eed99671467b451b3b2d3db7695a5ce2ff9e Mon Sep 17 00:00:00 2001 From: alfred Date: Thu, 20 Jul 2000 12:12:41 +0000 Subject: disallow unload until we do proper refcounting --- sys/kern/uipc_accf.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'sys/kern/uipc_accf.c') diff --git a/sys/kern/uipc_accf.c b/sys/kern/uipc_accf.c index 67f5152..e6b7d61 100644 --- a/sys/kern/uipc_accf.c +++ b/sys/kern/uipc_accf.c @@ -115,9 +115,18 @@ accept_filt_generic_mod_event(module_t mod, int event, void *data) break; case MOD_UNLOAD: + /* + * Do not support unloading yet. we don't keep track of refcounts + * and unloading an accept filter callback and then having it called + * is a bad thing. A simple fix would be to track the refcount + * in the struct accept_filter. + */ +#if 0 s = splnet(); error = accept_filt_del(accfp->accf_name); splx(s); +#endif + error = EOPNOTSUPP; break; case MOD_SHUTDOWN: -- cgit v1.1