From f132072368c112104e35151ee7a1c30a1b74a107 Mon Sep 17 00:00:00 2001 From: Alfred Perlstein Date: Wed, 1 May 2002 20:44:46 +0000 Subject: Redo the sigio locking. Turn the sigio sx into a mutex. Sigio lock is really only needed to protect interrupts from dereferencing the sigio pointer in an object when the sigio itself is being destroyed. In order to do this in the most unintrusive manner change pgsigio's sigio * argument into a **, that way we can lock internally to the function. --- sys/net/bpf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/net/bpf.c') diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 0077e51369a1..325af5430cec 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -511,7 +511,7 @@ bpf_wakeup(d) } wakeup((caddr_t)d); if (d->bd_async && d->bd_sig && d->bd_sigio) - pgsigio(d->bd_sigio, d->bd_sig, 0); + pgsigio(&d->bd_sigio, d->bd_sig, 0); selwakeup(&d->bd_sel); } -- cgit v1.2.3